[Freeswitch-users] WG: fusionPBX / Dialplans get crazy

Mathieu Rene mrene_lists at avgs.ca
Thu Nov 18 14:14:04 PST 2010


#define MAX_PEERS 128

128 it is.

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca




On 2010-11-18, at 5:04 PM, Steven Ayre wrote:

> I think it's 256, but would need to check the code to confirm that.
> 
> -Steve
> 
> 
> 
> On 18 November 2010 21:44, Milena <testeador01 at gmail.com> wrote:
>> Hello,
>> Once I had a crazy dialplan full of "|" that kept going crazy... that time I
>> was told there is a limit on the ammount of OR(pipes) you can do (never
>> figured out exactly what was it), optimizing your dialplan with regexes or
>> dividing it into separate ones will fix the behavior.
>> 
>> -milena
>> On Wed, Nov 17, 2010 at 6:22 PM, Isti <pistike040 at googlemail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> hier is an outbound call, which was sent through the provider
>>> "PBX-Network"
>>> 
>>> The number was 0049-721-6019044
>>> 
>>> ----------------------------------------------------------------------------
>>> Dialplan: sofia/internal/120 at 188.72.247.73 Regex (PASS)
>>> [pbxnetwork.0049151152157159160162163170172172173174175176177178179d]
>>> destination_number(00497216019044) =~
>>> 
>>> /^(\+|00)(49[151|152|157|159|160|162|163|170|172|172|173|174|175|176|177|178
>>> |179])(\d+)/ break=on-false
>>> Dialplan: sofia/internal/120 at 188.72.247.73 Action set(index=00)
>>> Dialplan: sofia/internal/120 at 188.72.247.73 Action set(vorwahl=497)
>>> Dialplan: sofia/internal/120 at 188.72.247.73 Action set(nummer=216019044)
>>> Dialplan: sofia/internal/120 at 188.72.247.73 Action
>>> bridge(sofia/gateway/pbxnetwork/00497216019044)
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_state_machine.c:114
>>> (sofia/internal/120 at 188.72.247.73) State Change CS_ROUTING -> CS_EXECUTE
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_session.c:932 Send signal
>>> sofia/internal/120 at 188.72.247.73 [BREAK]
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_state_machine.c:484
>>> (sofia/internal/120 at 188.72.247.73) State ROUTING going to sleep
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_state_machine.c:398
>>> (sofia/internal/120 at 188.72.247.73) Running State Change CS_EXECUTE
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_state_machine.c:491
>>> (sofia/internal/120 at 188.72.247.73) State EXECUTE
>>> 2010-11-16 01:19:37.604828 [DEBUG] mod_sofia.c:173
>>> sofia/internal/120 at 188.72.247.73 SOFIA EXECUTE
>>> 2010-11-16 01:19:37.604828 [DEBUG] switch_core_state_machine.c:151
>>> sofia/internal/120 at 188.72.247.73 Standard EXECUTE EXECUTE
>>> sofia/internal/120 at 188.72.247.73 set(use_profile=default)
>>> 2010-11-16 01:19:37.604828 [DEBUG] mod_dptools.c:748
>>> sofia/internal/120 at 188.72.247.73 SET [use_profile]=[default] EXECUTE
>>> sofia/internal/120 at 188.72.247.73 set_user(default at 188.72.247.73) EXECUTE
>>> sofia/internal/120 at 188.72.247.73
>>> 
>>> db(insert/188.72.247.73-spymap/01795191600/8b4f07ee-37b6-4849-adb8-b9dada887
>>> 83e)
>>> EXECUTE sofia/internal/120 at 188.72.247.73
>>> db(insert/188.72.247.73-last_dial/01795191600/00497216019044)
>>> EXECUTE sofia/internal/120 at 188.72.247.73
>>> 
>>> db(insert/188.72.247.73-last_dial/global/8b4f07ee-37b6-4849-adb8-b9dada88783
>>> e)
>>> EXECUTE sofia/internal/120 at 188.72.247.73 set(index=00)
>>> 2010-11-16 01:19:37.686045 [DEBUG] mod_dptools.c:748
>>> sofia/internal/120 at 188.72.247.73 SET [index]=[00] EXECUTE
>>> sofia/internal/120 at 188.72.247.73 set(vorwahl=497)
>>> 2010-11-16 01:19:37.686045 [DEBUG] mod_dptools.c:748
>>> sofia/internal/120 at 188.72.247.73 SET [vorwahl]=[497] EXECUTE
>>> sofia/internal/120 at 188.72.247.73 set(nummer=216019044)
>>> 2010-11-16 01:19:37.686045 [DEBUG] mod_dptools.c:748
>>> sofia/internal/120 at 188.72.247.73 SET [nummer]=[216019044] EXECUTE
>>> sofia/internal/120 at 188.72.247.73
>>> bridge(sofia/gateway/pbxnetwork/00497216019044)
>>> 
>>> ----------------------------------------------------------------------------
>>> 
>>> This is actually false.
>>> 
>>> Hier are the dialplans:
>>> 
>>> ------------------------------------------
>>> 
>>> 
>>> 
>>> Dcalling.0036203050607033600300901030406030659078091230334541495455567567898
>>> 941207074767778799797986078860798689d
>>>  996
>>>  true
>>> 
>>> ^(\+|00)(36[20|30|50|60|70|]|336[003|009|01|03|04|0603|0659|078|09|12|303|34
>>> 
>>> 5|41|49|54|55|567|56|78|989]|41[20|70|74|76|77|78|79979|79|86078|86079|86|89
>>> ])(\d+) $ Dcalling
>>> 
>>> 
>>>  pbxnetwork.0049151152157159160162163170172172173174175176177178179d
>>>  997
>>>  true
>>> 
>>> ^(\+|00)(49[151|152|157|159|160|162|163|170|172|172|173|174|175|176|177|178|
>>> 179])(\d+)$ pbxnetwork
>>> 
>>> 
>>>  pbxnetwork.0151152157159160162163170172172173174175176177178179d
>>>  998
>>>  true
>>> 
>>> ^(0[151|152|157|159|160|162|163|170|172|172|173|174|175|176|177|178|179])(\d
>>> +)$ pbxnetwork
>>> 
>>>  Sipgate_2.d
>>>  999
>>>  true
>>> ^(\d+) $ Sipgate_2
>>> 
>>>  -------------------------------------------------------
>>> 
>>> 1. The first provider Dcalling filters the international mobile calls.
>>> 2. the 2nd (PBX-Network) filters the german mobile calls which start with
>>> "+" or "00", in the internation format.
>>> 3. the 3rd (PBX-Network) filters the german mobile calls which start with
>>> "0", in the national format.
>>> 4. the 4th one, Sipgate catchs all the rest.
>>> 
>>> In this case 0049-721-601-9044 Sipgate have had to cought the call.
>>> Because
>>> no otfer filter matches. According to the log PBX-Network was activated.
>>> But
>>> why?
>>> 
>>> Also Dcalling handles the number with 00. and no other filter handles the
>>> area code "721", only Sipgate. Why PBX-Network?
>>> 
>>> Can you tell what is wrong. As the dial plans were set up was everything
>>> Ok.
>>> I have then deleted a dialplan and everything went wrong.
>>> 
>>> 
>>> In case you have an idea what to do, thank you very much for it. Could you
>>> tell me how to set up the dialplans to get "cleaner" forwarding.
>>> 
>>> With kind regards,
>>> 
>>> I.
>>> 
>>> _______________________________________________
>>> 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
>>> 
>> 
>> 
>> _______________________________________________
>> 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
>> 
>> 
> 
> _______________________________________________
> 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