[asterisk-users] Asterisk variable for SIP context
Mike
list at virtutel.ca
Tue Dec 9 18:53:34 CST 2008
I could, but let's say phone B is limited to local calls, I wouldn`t want
the user to be able to transfer to non-local phone numbers.
Can you explain how your idea makes it simpler or better? I might be missing
the point.
Mike
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eric
"ManxPower" Wieling
Sent: Tuesday, December 09, 2008 19:36
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk variable for SIP context
Mike wrote:
> Sure, that works too, but I needed access to context taken from the sip
> entry because I needed to goto(${that_context}), and that context varies
> depending on the phone used.
>
> This is when setting __TRANSFER_CONTEXT in my cookie cutter really
> big/complexe/database driven extension. I get
> __TRANSFER_CONTEX=transfer_context, but once in [transfer_context] I send
> the call to the right specific context using a Goto cmd.
>
> Else I would need to replicate that big extension for each of those
outgoing
> context, which is, from a coding perspective, error prone when
modifications
> are made later.
Can't you do a Set(ORIG_CONTEXT=${CONTEXT}) or
Set(__ORIG_CONTEXT=${CONTEXT}) (syntax before 1.6, see upgrade.txt for
the 1.6 format) before your Goto.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.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