Calling From SIP Client Then Bridge Between Two End Points

Home » Asterisk Users » Calling From SIP Client Then Bridge Between Two End Points
Asterisk Users 1 Comment

Hi All;

How I can acheive the following:

From sip client softphone (from the iPhone for example), if I dialed a number that I need to call it, then a call to be initated to a specific number through DAHDI channel and another call to be initiated for the destination number (the number that I dialed it from the softphone) and these two calls to be linked togethor (to call each other directly). So the call from the softphone just to important in the begining to trigger this scenario.

How this settings to be done?

Regards Bilal

One thought on - Calling From SIP Client Then Bridge Between Two End Points

  • Assuming a sip client lands calls in a context named ‘from-sip’, I would have following sort of logic in dialplan.

    [from-sip]
    exten => _X.,1,Noop(${EXTEN},${UNIQUEID})
    same => n,System(echo -e
    “Channel:Local/s@specific-number/n\\nContext:external\\nExtension:s\\npriority:1\\nSet:
    external_num=${EXTEN}” >/tmp/${UNIQUEID}.call)
    same => n,System(/bin/mv /tmp/${UNIQUEID}.call
    /var/spool/asterisk/outgoing/)
    same => n,Hangup()

    [specific-number]
    exten => s,1,Noop()
    same => n,Dial(DAHDI/g0/XXXXXXXXXX,30)

    [external]
    exten => s,1,Noop()
    same => n,Dial(DAHDI/g0/${external_num},30)

    You can also use Asterisk application ‘originate’ in place of callfiles. I
    normally prefer local channels in Callfiles or Originate so that I can have better call control through dialplan.

    –Satish Barot