[Asterisk-Users] Dial multiple extensions, but different variables/timeouts

Luki lugosoft at gmail.com
Wed Mar 16 20:58:55 MST 2005


OK, great... the local forking approach works great. Example:

[extensions]
exten => 10,1,Dial(Local/11 at test&Local/12 at test)

[test]
exten => 11,1,SetVar(_SIP_CODEC=g726)
exten => 11,2,SetVar(_ALERT_INFO=Bellcore-r6)
exten => 11,3,Dial(SIP/11,10)

exten => 12,1,SetVar(_SIP_CODEC=ulaw)
exten => 12,2,SetVar(_ALERT_INFO=Bellcore-r3)
exten => 12,3,Dial(SIP/12,20)

When you dial 10 (assuming it's reachable from you dial plan) it will
ring up SIP/11 and SIP/12, each with a different codec and ring
pattern, and a different timeout time. The codec also depends on the
device that answers the call -- useful if SIP/12 is local and SIP/11
is remote with limited bandwidth. This is exactly what I was after,
and it's very simple to do. Excellent.

This was tested using a Sipura ATA and the Sipura 841 phone, and the
CVS branch of *. FYI: For CVS, variables with a leading _ are
"soft-transferable" and are inherited by new channels; the leading _
is stripped so _ALERT_INFO becomes ALERT_INFO and is included in the
INVITE message.

Anyway, if anyone ever needs this info, they can Google it now :-).

--Luki



More information about the asterisk-users mailing list