<div class="gmail_quote">On Thu, Feb 24, 2011 at 7:31 AM, Axelle <span dir="ltr"><<a href="mailto:aafortinet@gmail.com">aafortinet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Danny,<br></blockquote></div><br>Try this code, it uses the SIPCHANINFO function to get the peername of the device that's attempting to create the roaming extension, instead of the callerid. Basically, you need to store some kind of contact info for the roaming phone for it to be any use at all. If you don't have a peername for the phone, you could try SIPCHANINFO(peerip) instead. <br>
<br>[roaming-ext]<br>;Create a new roaming extension<br>exten => 3001,1(readop),Verbose(Create roaming extension)<br>exten => 3001,n,Read(digito,beep,3)<br>exten => 3001,n,Playback(you-entered)<br>exten => 3001,n,SayDigits(${digito})<br>
exten => 3001,n,Verbose(Setting roaming extension 4${digito} to call ${SIPCHANINFO(peername)})<br>exten => 3001,n,Set(DB(roam/${digito})=${SIPCHANINFO(peername)})<br>exten => 3001,n,Playback(vm-goodbye)<br>exten => 3001,n,Hangup()<br>
<br>;Dial a roaming extension<br>exten => _4XXX,1,Verbose(Calling roaming extension ${EXTEN})<br>exten => _4XXX,n,Set(ROAMEXT=${DB(roam/${EXTEN:1})})<br>exten => _4XXX,n,Dial(SIP/${ROAMEXT},30)<br><br><br>-- <br>
Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>