[asterisk-users] Assigning an extension to a roaming phone

Danny Nicholas danny at debsinc.com
Tue Feb 22 08:05:09 CST 2011


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Axelle
Sent: Tuesday, February 22, 2011 5:32 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Assigning an extension to a roaming phone

> [roaming-ext]
> ;Create a new roaming extension
> exten => 3001,1(readop),Verbose(Create roaming extension)
> exten => 3001,n,Read(digito,beep,3)
> exten => 3001,n,Playback(you-entered)
> exten => 3001,n,SayDigits(${digito})
> exten => 3001,n,Verbose(Setting roaming extension 4${digito} to call
> ${CALLERID(num)})
> exten => 3001,n,Set(DB(roam/${digito})=${CALLERID(num)})
> exten => 3001,n,Playback(vm-goodbye)
> exten => 3001,n,Hangup()

Good idea the Verbose commands, at least I see a bit better what is
happening. I should have thought about that one. Thanks.
But I don't understand the CALLERID part: the roaming user is unknown
on my network, so how could he have a correct CALLERID?

>
> ;Dial a roaming extension
> exten => _4XXX,1,Verbose(Calling roaming extension ${EXTEN})
> exten => _4XXX,n,Set(ROAMEXT=${DB(roam/${EXTEN:1})})
> exten => _4XXX,n,Dial(SIP/${ROAMEXT},30)

I tried it and I get the following logs:
[Feb 22 11:57:44] NOTICE[20626]: chan_sip.c:15642
handle_request_register: Registration from 'IMSI20830xxxx'
<sip:IMSI20830xxxx at 127.0.0.1>' failed for '127.0.0.1' - No matching
peer found
=> this line appears when the roaming user comes in
<snip>
Axelle, please post the CLI output from the 3001 call and I'll put up a
dialplan that should work for you.




More information about the asterisk-users mailing list