Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] User Directory and Per-user (Channel) variables


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
freeswitch-users-list ...
Guest





PostPosted: Mon May 18, 2009 1:17 pm    Post subject: [Freeswitch-users] User Directory and Per-user (Channel) var Reply with quote

bridge() appears to be ignoring the "absolute_codec_string" channel variable
defined in the User Directory even though "info" shows that it is present.
Other variables, such as "effective_caller_id_number" seem to behave
correctly which leads me to believe that this may be a very minor bug.

In order to ease trouble shooting, I have tried to implement it using a
configuration that clings rather closely to the sample/default configuration
files...

// User Directory sample

<user id="5551212" mailbox="5551212">
<params>
<param name="password" value="5551212"/>
<param name="vm-password" value="5551212"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="5551212"/>
<variable name="effective_caller_id_number" value="5551212"/>
<variable name="absolute_codec_string" value="PCMU"/>
</variables>
</user>

// Dialplan broken sample (relies on the channel variable defined in the
User Directory)

<extension name="domestic.example.com">
<condition field="${toll_allow}" expression="domestic"/>
<condition field="destination_number" expression="^(\d{11})$">
<action application="info"/>
<action application="bridge"
data="sofia/gateway/${default_gateway}/$1"/>
</condition>
</extension>

// Dialplan working sample (explicit use of the channel variable)

<extension name="domestic.example.com">
<condition field="${toll_allow}" expression="domestic"/>
<condition field="destination_number" expression="^(\d{11})$">
<action application="info"/>
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="bridge"
data="{absolute_codec_string=PCMU}sofia/gateway/${default_gateway}/$1"/>
</condition>
</extension>

// Gateway sample

<gateway name="pstn">
<param name="username" value="outbound"/>
<param name="password" value="outbound"/>
<param name="proxy" value="192.168.1.1"/>
<param name="register" value="false"/>
<param name="caller-id-in-from" value="true"/>
</gateway>


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon May 18, 2009 1:28 pm    Post subject: [Freeswitch-users] User Directory and Per-user (Channel) var Reply with quote

Because by the time it gets here... the codec is already picked.. you'll have to turn on late neg. for this to work.

/b

On May 18, 2009, at 1:08 PM, Metik wrote:
Quote:
<variable name="absolute_codec_string" value="PCMU"/>


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services