'. But when the call is made to S1 and S1 transfers the call to S2 then the
call goes into default context.
In all my peer definitions on S1 and S2 I define the context as
'test_context' and the default context is 'default'
On Wed, Oct 10, 2012 at 9:22 PM, Sean Darcy <seandarcy2 at gmail.com>
wrote:> On Wed, Oct 10, 2012 at 8:06 AM, Deepesh D <deep.d2010 at gmail.com>
wrote:
>> Hello,
>>
>> How do I use the asterisk application 'Transfer' to transfer a
SIP=20
>> 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,=20
>> use the Transfer command in S1 and transfer the call to S2.
>>
>> Dialplan on S1
>> [test_context]
>> exten =3D> _X.,1,Transfer(SIP/${EXTEN}@IP_of_S2)
>> exten =3D> _X.,n,NoOp(${TRANSFERSTATUS}) exten =3D> _X.,n,Hangup
>>
>> Dialplan on S2
>> [default]
>> exten =3D> _X.,1,Playback(somemsg)
>> exten =3D> _X.,n,Hangup
>>
>> [test_context]
>> exten =3D> _X.,1,Answer
>> exten =3D> _X.,n,Playback(msg)
>> exten =3D> _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 =3D yes' in sip.conf.
>>
>> When I dial from C1, the call is successfully transferred to S1 (I=20
>> get TRANSFERSTATUS as SUCCESS and I can see C1 trying to send the=20
>> call to S2). But the call does not get authenticated on S2 and goes=20
>> into default context instead of 'test_context'. How can I
transfer=20
>> the call such that S2 authenticates the call and sends it to the=20
>> required context?
>>
>> Thanks
>>
>
> What happens when you dial into S2 from outside?
>
> Did you set a context in sip.conf on S2?
>
> sean
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --=20
> 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
--
_____________________________________________________________________
-- 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