[asterisk-users] Assigning an extension to a roaming phone
Danny Nicholas
danny at debsinc.com
Mon Feb 21 11:33:05 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: Monday, February 21, 2011 11:09 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Assigning an extension to a roaming phone
Hi Danny,
Thanks again for your help !
<snip>
> 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.
** vm-goodbye is in /usr/share/asterisk/sounds?
> 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). Is the ${ROAM} trying to reach an in-house extension or an outside
number?
More information about the asterisk-users
mailing list