[Freeswitch-users] SIP trunk (PBX - FreeSwitch) routing problem.

julien jgonzalez at sqli.com
Tue Jul 28 08:00:58 PDT 2009


Thanks for the tip Brian. It seems that the extension matches 
successfully in the dialplan (PASS, instead of FAIL for all other 
entries of the dialplan) :

Dialplan: sofia/internal/[EMAIL PROTECTED] parsing [default->pbxlyon] 
continue=false
Dialplan: sofia/internal/[EMAIL PROTECTED] Regex (PASS) [pbxlyon] 
destination_number(300) =~ /300/ break=on-false

But it leads nowhere. After the match the connection to the PBX fails :

2009-07-28 16:16:43.963836 [NOTICE] switch_channel.c:602 New Channel 
sofia/external/300 [46fca878-7b81-11de-a9c2-0f49fee5280a]
2009-07-28 16:16:43.963836 [DEBUG] mod_sofia.c:2751 (sofia/external/300) 
State Change CS_NEW -> CS_INIT
2009-07-28 16:16:43.963836 [DEBUG] switch_core_session.c:933 Send signal 
sofia/external/300 [BREAK]
2009-07-28 16:16:43.973759 [DEBUG] switch_core_state_machine.c:397 
(sofia/external/300) Running State Change CS_INIT
2009-07-28 16:16:43.973759 [DEBUG] switch_core_state_machine.c:480 
(sofia/external/300) State INIT
2009-07-28 16:16:43.973759 [DEBUG] mod_sofia.c:83 sofia/external/300 
SOFIA INIT
2009-07-28 16:16:43.975221 [DEBUG] mod_sofia.c:111 (sofia/external/300) 
State Change CS_INIT -> CS_ROUTING
2009-07-28 16:16:43.975221 [DEBUG] switch_core_session.c:933 Send signal 
sofia/external/300 [BREAK]
2009-07-28 16:16:43.975221 [DEBUG] sofia.c:3215 Channel 
sofia/external/300 entering state [calling][0]
2009-07-28 16:16:43.975221 [DEBUG] switch_core_state_machine.c:480 
(sofia/external/300) State INIT going to sleep
2009-07-28 16:16:43.975221 [DEBUG] switch_core_state_machine.c:397 
(sofia/external/300) Running State Change CS_ROUTING
2009-07-28 16:16:43.975221 [DEBUG] switch_core_state_machine.c:483 
(sofia/external/300) State ROUTING
2009-07-28 16:16:43.975221 [DEBUG] mod_sofia.c:130 sofia/external/300 
SOFIA ROUTING
2009-07-28 16:16:43.975221 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/300) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2009-07-28 16:16:43.975221 [DEBUG] switch_core_session.c:933 Send signal 
sofia/external/300 [BREAK]
2009-07-28 16:16:43.976763 [DEBUG] switch_core_state_machine.c:483 
(sofia/external/300) State ROUTING going to sleep
2009-07-28 16:16:43.976763 [DEBUG] switch_core_state_machine.c:397 
(sofia/external/300) Running State Change CS_CONSUME_MEDIA
2009-07-28 16:16:43.976763 [DEBUG] switch_core_state_machine.c:502 
(sofia/external/300) State CONSUME_MEDIA
2009-07-28 16:16:44.82786 [DEBUG] sofia.c:3215 Channel 
sofia/external/300 entering state [terminated][404]
2009-07-28 16:16:44.82786 [NOTICE] sofia.c:3775 Hangup 
sofia/external/300 [CS_CONSUME_MEDIA] [NO_ROUTE_DESTINATION]

It looks to me that it's more a problem from the gateway than from the 
dialplan? Don't you think so?
Do you think the way I defined my gateway is good for a connexion to a PBX ?

Thanks for your replies Brian and Jason.


Brian West a écrit :
> Well press F8 and increase the debug level.. then try again you'll  
> prob. see that its not finding it NOR matching it anywhere in your  
> dialplan.
>
> /b
>
> On Jul 28, 2009, at 4:32 AM, julien wrote:
>
>   
>> Hello brian,
>> It was not exactly at the bottom but before
>>
>> <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
>>
>> I tried to put it higher in the dialplan but it still doesn't work  
>> (with
>> the same error).
>>
>> Thanks for your help.
>>     
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>   





More information about the FreeSWITCH-users mailing list