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

Axelle aafortinet at gmail.com
Mon Feb 21 11:09:23 CST 2011


Hi Danny,

Thanks again for your help !


> Exten => 4001,1,Dial(DAHDI/g1/5551212)
> Or
> Exten => 4001,1,Dial(SIP/5551212 at myprovider.com)

It looks like I'd be using Dial(SIP/...) as for other numbers I have a
macro such as this:
[macro-dialSIP]
exten => s,1,Dial(SIP/${ARG1})
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-CANCEL,1,Hangup
etc

> line 2 plays "enter roaming number" (you have to record it)

well, I'm trying to use a pre-recorded sound.
But it does not play it.

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.

> 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



More information about the asterisk-users mailing list