SOLVED Two inbound routes parallel / simultaneously

Status
Not open for further replies.

MrWeb

New Member
Mar 8, 2021
23
1
3
49
I need to signal on two inbound routes, but it is not possible, to use a ring group.

I need to bridge all incoming call's to a extension (with an old pbx).
For that, i found this:

and the action seems to work, but i need also to signal the corrseponding extension...

I don't know, it is clear what i meen...
It's a german telekom sip-trunk with a 1000 block (0-999)

I have two inbound routes...

The first, normal (more than one, but in this example, one is enough)
01234 or +491234 is the area code (with country code)
789 thebase phone number of the trunk.
Min Number is 7890
max Number is 789999
Here only für 789100 to 789999:

condition ${sip_to_user} ^(\+49|0)(1234789\d\d\d)$ 0 20 true
action set hangup_after_bridge=true true 0 30 true
action set continue_on_fail=true true 0 40 true
action transfer ${sip_to_user:-3} XML 10.10.10.1

The incoming call is routet to the rifght extension with the number of the last 3 digits.

But i have to inform also a second extension, with this call (old isdn pbx isbehind there)

For that, i use an action i found here:

condition ${sip_to_user} ^(\+49|0)(1234789\d\d\d)$ 0 20 true
action set hangup_after_bridge=true true 0 30 true
action set continue_on_fail=true true 0 40 true
action bridge sofia/internal/sip:$1${regex(${sofia_contact(1000@yourdomain)}|^[^@]+(.*)|%1)}

1000 is my extension with the old pbx behind it.

Both are working, but always only allone... one or the other...

What can i do to run both of them ?

Any ideas ?

Sorry, i'm new on freeswitch/fusionpbx... and i'm learning....
And, sorry for my bad english...

Best regards,
MrWeb
 
Status
Not open for further replies.