Philipp,

thank you for your willingness to help me.

In a previous mail I gave a part of my dialplan: an incoming call rings a group of extensions/SIPaccounts :

[sub-routing]
<snip>
exten => s,n(group),NoOp()
exten => s,n,Macro(GetGroupDetails,${ganaarID})
exten => s,n,GoToIf($["${sequencenr}"=="1"]?callit)
exten => s,n,Answer()
exten => s,n(callit),Dial(${SIPaccounts},${timeout}) <-------------------------------- !!!!
exten => s,n,GoToIf($["${DIALSTATUS}"!="ANSWER"]?nextstep:hangup)
<snip>


So the following happens :

exten => s,n,Dial(SIP/testcorp1&SIP/testcorp2) ; dial multiple ext

or

exten => s,n,Dial(SIP/testcorp1) ; dial one ext


I want to pick up the calling extension, in this case extension 10 (testcorp1) or 20 (testcorp2), or extension 10 (testcorp1).

How to do this ??
To proceed with your answer on PICKUPMARK, where do I put this ???


Remark : internal calls no problem (like calling extension 10 from extension 20, and pick up extension 10 from extension 30)

But calls coming from external... impossible !


Jonas.


On 06/15/2010 02:38 PM, Philipp von Klitzing wrote:
Hi!
Do not make PICKUPMARK a global variable - use it as a normal channel
variable instead (and prefix it with _ (or even __) when you see fit to
provide channel variable inheritance).

Philipp
-- 
_____________________________________________________________________
-- 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

Reply via email to