[Asterisk-Users] call transfer to external phone number
Keith Geffert
kgeffert at voxmicro.net
Mon Apr 3 08:12:55 MST 2006
SIP transfers happen out of band, so the context is the sip phone's
context noted in sip.conf.
For Inbound and outbound (ie Dial application), the context is the entry
point in the dial plan. If you need features.conf transfers to work in
a specific context you need to set the __TRANSFER_CONTEXT variable
before the Dial application so asterisk knows what context to look for
extensions.
The relevant wiki page:
http://www.voip-info.org/wiki/view/Asterisk+config+features.conf
example:
exten => 101,1,set(__TRANSFER_CONTEXT=vm-internal)
exten => 101,n,Macro(superdial,SIP/vm-ext1&SIP/outsip/9995551212,15,tr,
,pstn,2,${CALLERIDNAME},${CALLERIDNUM},pstn,101 at vm-internal)
So .. in this instance, when we outdial the cellphone (9995551212) with
the 't' option, we support transfers. If we don't set the transfer
context as above when the # key is hit. Asterisk is looking in the
[inbound] context because that is where extension 101 was dialed from.
But ... exten 101 doesn't want those available extensions, they want the
same set of extensions they have at their sip phone so they can transfer
to voicemail and so on.
Since our outbound pattern dials to SIP/outsip also exist in
[vm-internal] .. calls can be transferred out to PSTN numbers.
in any case.. this is how I got it to work. :)
Cosmin Prund wrote:
>> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
>> bounces at lists.digium.com] On Behalf Of C F
>> Sent: Monday, April 03, 2006 3:49 PM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [Asterisk-Users] call transfer to external phone number
>>
>> Yes, as long as the context that the phone transfering has an exten
>> declared for that number.
>>
>
> Does Asterisk make any distinction between an "internal" number and an
> "external" number? I'm inclined to think it might be some kind of "timeout"
> issue. And I've got the proof:
>
>>From my Aastra 9xxx (don't know the number and I'm to lasy to go look) I can
> transfer a call to any "extension", including the loooong extension required
> for dialing an external number (ie: #0XXXXXXXXX). Unfortunatelly that's the
> ONLY phone I can do that from! I can't do it from XLite softphone and I
> can't do it from analog phones connected to a Linksys PAP2.
>
> For the phones that are unable to transfer to external numbers I've got
> "alias" extensions defined (basic, 3 digit extensions).
>
>> On 4/3/06, Giuseppe <g.delduca at webster.it> wrote:
>>> Hi!
>>> Is it possible to transfer a call to an external phone instead of
>>> transferring the call to internal phone?
>>> (I'm sorry for my bad english, I hope you understand)
>>> When, during a call, I digit "#123", the call is transferred to internal
>>> extension "123",
>>> but if I digit "#external_phone_number", it tells me that it's
>> impossible.
>>> Any idea?
>>>
>>> Thanks a lot!
>>>
>>> Giuseppe
>>>
>>> _______________________________________________
>>> --Bandwidth and Colocation provided by Easynews.com --
>>>
>>> Asterisk-Users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> Asterisk-Users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list