[Freeswitch-users] FusionPBX/FreeSWITCH : Wrong context is being used for outbound calls

juned jkhan6722 at gmail.com
Tue Dec 31 09:14:30 MSK 2013


Hi All, 

I am having issue with Outbound calls.

I am not writing confguration in XML instead of that i am writing configs in
database, for that i am following below link.

http://wiki.fusionpbx.com/index.php?title=XML_Handler

I have created and extension and gateway, but contect is being changed when
i am making outbound calls. By enabling the debug logs i have found the
issue with context.

Wrong context is being selected for calls. Below are the logs in which in
query it selects public as context but in actual XML file it shows correct
context.

[xml_handler] SQL: select * from v_dialplans as d, v_dialplan_details as s
where d.dialplan_context = 'public' and d.dialplan_enabled = 'true' and
d.dialplan_uuid = s.dialplan_uuid order by d.dialplan_order asc,
d.dialplan_name asc, d.dialplan_uuid asc, s.dialplan_detail_group asc, CASE
s.dialplan_detail_tag WHEN 'condition' THEN 1 WHEN 'action' THEN 2 WHEN
'anti-action' THEN 3 ELSE 100 END, s.dialplan_detail_order asc                       
2013-12-31 16:58:00.814654 [NOTICE] switch_cpp.cpp:1288 [xml_handler]
dialplan:public source: database


<variables>                                                                                                    
                                                                <variable
name="domain_uuid" value="49768d38-6da7-4a40-a424-4ec379954ebd"/>                            
                                                                <variable
name="domain_name" value="abc.test.com"/>                                            
                                                                <variable
name="extension_uuid" value="86f14c1d-0e67-4e86-b3bc-d3e54782a67f"/>                         
                                                                <variable
name="caller_id_name" value="123456"/>                                                       
                                                                <variable
name="caller_id_number" value="123456"/>                                                     
                                                                <variable
name="accountcode" value="7681006065"/>                                                      
                                                                <variable
name="user_context" value="abc.test.com"/>                                           
                                                                <variable
name="directory-visible" value="true"/>                                                      
                                                                <variable
name="directory-exten-visible" value="true"/>                                                
                                                                <variable
name="limit_max" value="5"/>                                                                 
                                                                <variable
name="record_stereo" value="true"/>                                                          
                                                                <variable
name="transfer_fallback_extension" value="operator"/>                                        
                                                                <variable
name="export_vars" value="domain_name"/>                                                     
                                                        </variables>            

What could be the issue ? why wrong context is being selected for extensions
?


Thanks
Juned Khan



--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/FusionPBX-FreeSWITCH-Wrong-context-is-being-used-for-outbound-calls-tp7596035.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list