[Asterisk-Dev] Manipulating CALLERIDNUM
mirza sahib
wasim at convergence.com.pk
Wed Aug 31 00:51:40 MST 2005
On Tue, 30 Aug 2005, Chad Brown wrote:
> A little help from the devs would be appreciated. Given the following
> line:
actually -users would have been better ...
> exten => *97,3,VoicemailMain(${CALLERIDNUM}@default)
>
> Is it possible to add some logic to manipulate the CALLERIDNUM to send
> back 801 even if the extension is 601 and 901 even if the extension is
> 701? I have 2 branch offices where users have both Office and Home SIP
> phones. I want them to share a VM box.
one way of doing this (and there might be better ones)
exten => *97,3,Gotoif($[${CALLERIDNUM:0:1} = 8]?8:4)
exten => *97,4,Gotoif($[${CALLERIDNUM:0:1} = 7]?9:5)
exten => *97,5,Voicemailmain()
exten => *97,8,Voicemailmain(8${CALLERIDNUM:1})
exten => *97,9,Voicemailmain(9${CALLERIDNUM:1})
sorry, wasn't able to test, so please do so ...
--
wasim h. baig | principal consultant | convergence pk | +92(300)8508070
GnuPG fingerprint = F3B5 2B00 F502 51FE 53E3 9607 5257 77B8 AA0D 4AD0
More information about the asterisk-dev
mailing list