login | register
Sat 22 of Nov, 2008 [07:58 UTC]

voip-info.org

History

DIALEDPEERNUMBER

Created by: fredo,Last modification on Fri 14 of Apr, 2006 [12:56 UTC] by Ulyssees
This variable should contain the number of the called party. Unfortunately it is broken for now and only contains the second part of the internal/temporary channel information (the part after the technology ie gs1-8b21 if the DIALEDPEERNAME was 'SIP/gs1-8b21).
See bug 0002590 on http://bugs.digium.com

Workaround for SIP:
exten => s,1,Answer
exten => s,2,Set(FOO1=${CHANNEL:4})
exten => s,3,Set(FOO1=${CUT(FOO1,-,1})

FOO1 will now contain the dialed peernumber of the current SIP channel. peernumber must not have a "-" in it though.
Let's say peernumber is 555, you'd then jump to the extension like this:

exten => s,4,Goto(${FOO1},1)

exten => 555,1,DoWhatever


Comments

Comments Filter
222

333SIP called party number

by Blumagic, Saturday 01 of July, 2006 [06:04:44 UTC]
Maybe Asterisk SIP channels - Crossed Incoming SIP Lines may help.