[Freeswitch-users] user variables on outbound calls

mbo mbodbg at gmx.net
Tue Jun 26 22:27:09 MSD 2012


Hello,

I've configured the following sip extension :

 <user id="1005">
    <params>
      <param name="password" value="$${default_password}"/>
      <param name="vm-password" value="1005"/>
    </params>
    <variables>
      <variable name="effective_caller_id_name" value="0221123456789"/>
      <variable name="effective_caller_id_number" value="02212345679" />
      <variable name="outbound_caller_id_name" value="02212345679"/>
      <variable name="outbound_caller_id_number" value="02212345679"/>
      <variable name="user_context" value="sipoutbound"/>
    </variables>
  </user>

When I'm dialing out from my sip client, the variables effective_caller_id_number and outbound_caller_id_number are not set. 

 <context name="sipoutbound">
         <extension name="socket">
                <condition field="destination_number" expression="^(\d{5,20})$">
			<action application="set" data="calltype=OUTBOUND" />
                        <action application="log" data="CRIT effective_caller_id_number ${effective_caller_id_number}"/>                        
                        <action application="log" data="CRIT outbound_caller_id_number ${outbound_caller_id_number}"/>                  
                        <action application="socket" data="192.168.1.185:8025 async full" />
                        <action application="log" data="DEBUG Back from Socket"/>
                </condition>
        </extension>
  </context>


should't the variables be see with that configuration?

Thanks

Markus


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list