Callee - Destination number

Status
Not open for further replies.

Stelios

New Member
Sep 24, 2017
28
1
3
45
Hi,

FusionPBX get inbound calls from Freeswitch

For Inbound calls routing I need to use condition = ${sip_to_user}

Me I Would like to use as condition = destination_number
Right now condition = destination_number is not working for me

There is someone to advise me how to build the dialplan at the freeswitch side before bridging?? So I will use destination_number and NOT ${sip_to_user}

ACTUALLY I WOULD LIKE TO HAVE BOTH OPTIONS

Right now the variable destination_number has the sipdevice and not the callee number


Current freeswitch Dial plan
....
<extension name="402102241300">
<condition field="destination_number" expression="402102241300">
<action application="set" data="effective_destination_number=402102241300"/>
<action application="sched_hangup" data="+14400 allotted_timeout"/>
<action application="export" data="accountcode=241963338964290"/>
<action application="export" data="calltype=STANDARD"/>
<action application="set" data="origination_caller_id_number=402102241210"/>
<action application="set" data="origination_caller_id_name=402102241210"/>
<action application="set" data="effective_caller_id_number=402102241210"/>
<action application="set" data="effective_caller_id_name=402102241210"/>
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="export" data="t38_passthru=true"/>
<action application="bridge" data="{sip_invite_to_uri=<sip:402102241300@$${domain_name}>}user/NXYZE-50122@$${domain_name}"/>
</condition>
</extension>
......
 

Attachments

  • Capture.PNG
    Capture.PNG
    8.7 KB · Views: 33
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,043
565
113
Without testing, I would guess your freeswitch is not sending the correct info to you as FusionPBX would expect.

Can you post a siptrace of the inbound call?? I would expect the destination in the RURI to match the TO destination but I'm guessing this is not the case.
 

Stelios

New Member
Sep 24, 2017
28
1
3
45
I am sure that I miss something at the freeswitch dialplan....

I had the same issue when I was using Grandstream IP/PBX, which lood for calle number only in destination_number field (it did not have option to choose ${sip_to_user}).
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,043
565
113
I would guess that in the freeswitch you are sending username in the RURI and destination_number in the TO.

If this is the case, you shouldn't be trying to fix this on FusionPBX, you should fix it at the freeswitch side.
 

Stelios

New Member
Sep 24, 2017
28
1
3
45
Can you advice the correct Dialplan on freeswitch so I will be able to use both options (destination_number and ${sip_to_user}) ?

I tried :
<action application="export" data="callee_id_number=402102241300"/>

But nothing changed.

See image of Freeswitch Book
Capture.PNG
 

Stelios

New Member
Sep 24, 2017
28
1
3
45
Line of Logs
sofia/external/+402810881389@46.4.60.4 Regex (FAIL) [402102241030] destination_number(XDHGS6F90038) =~ /^(402102241030)$/ break=on-false

I need to look like this
sofia/external/+402810881389@46.4.60.4 Regex (FAIL) [402102241030] destination_number(402102241030) =~ /^(402102241030)$/ break=on-false
 
Status
Not open for further replies.