[asterisk-users] How to use 'Transfer' to send calls to another asterisk?
Gustavo Chalco
gcaclaroempresas at gmail.com
Wed Oct 10 10:34:20 CDT 2012
Sip trunk?
2012/10/10 Deepesh D <deep.d2010 at gmail.com>
> Hello,
>
> How do I use the asterisk application 'Transfer' to transfer a SIP
> call from one asterisk to another?
>
> I have the following scenario. I have two asterisk servers S1 and S2.
> There is a third asterisk server C1 which registers as a peer to S1.
> From C1, I dial into S1 using 'Dial' command. What I want to do is,
> use the Transfer command in S1 and transfer the call to S2.
>
> Dialplan on S1
> [test_context]
> exten => _X.,1,Transfer(SIP/${EXTEN}@IP_of_S2)
> exten => _X.,n,NoOp(${TRANSFERSTATUS})
> exten => _X.,n,Hangup
>
> Dialplan on S2
> [default]
> exten => _X.,1,Playback(somemsg)
> exten => _X.,n,Hangup
>
> [test_context]
> exten => _X.,1,Answer
> exten => _X.,n,Playback(msg)
> exten => _X.,n,Hangup
>
> The context for the SIP peer C1 is defined as 'test_context' in S1 and S2.
>
> In C1, I have set 'promiscredir = yes' in sip.conf.
>
> When I dial from C1, the call is successfully transferred to S1 (I get
> TRANSFERSTATUS as SUCCESS and I can see C1 trying to send the call to
> S2). But the call does not get authenticated on S2 and goes into
> default context instead of 'test_context'. How can I transfer the call
> such that S2 authenticates the call and sends it to the required
> context?
>
> Thanks
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Saludos
Gustavo Ch. Apaza
Core Consulting Group
CEL. 993783686
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121010/e105f32c/attachment.htm>
More information about the asterisk-users
mailing list