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

Axelle aafortinet at gmail.com
Tue Feb 22 05:21:22 CST 2011


> exten => 3001,n,playback(vm-youhave)
> I do have the file in /usr/share/asterisk/sounds:
> -rw-r--r-- 1 root root 1452 2008-03-06 00:39 vm-youhave.gsm
> but still it does not play it ?!
>
> The goodbye at the end does play correctly.
>
> ** vm-goodbye is in /usr/share/asterisk/sounds?

Yes it is.
$ ls -al /usr/share/asterisk/sounds/vm-goodb*
-rw-r--r-- 1 root root 1683 2008-03-06 00:39
/usr/share/asterisk/sounds/vm-goodbye.gsm


>
>> Part two
>> exten => _4XXX,1,Set(ROAM=${DB(roam/ext)})
>> exten => _4XXX,n,Dial(SIP/${ROAM},30,,mKkTt)
>>
>> line 1 user dials 4001 and gets ${ROAM} set from ASTDB
>> line 2 attempts to dial SIP extension based on ${ROAM} value.
>
> I dialed 3001, then 001. It does say 001 back.
> But then 4001 does not work.
>
> [Feb 21 17:53:06] WARNING[26195]: chan_sip.c:2921 create_addr: No such host:
> 001
> [Feb 21 17:53:06] WARNING[26195]: app_dial.c:1202 dial_exec_full:
> Unable to create channel of type 'SIP' (cause 3 - No route to
> destination)
>
> -- Axelle
>
> I doubt you have an extension 001 in your list (the number 4001 is trying to
> dial).

Well, the 001 is supposed to be created by this line, isn't it?
exten => 3001,n,Set(DB(roam/ext)=${digito})

But obviously, yes, it is not working :(

> Is the ${ROAM} trying to reach an in-house extension or an outside
> number?

an in-house extension.

-- Axelle



More information about the asterisk-users mailing list