I'm afraid I'm quite confused by what I've found on the Wiki. I have the following dial plan that works: exten => 2201,1,Dial(sip/2201@gs1.uucp,20,) exten => 2201,2,Voicemail(u2201) exten => 2201,3,Hangup exten => 2201,102,voicemail(b2201) exten => 2201,104,hangup When the phone is in use it goes to voice mail as busy. When not picked up, as unavailable. This one does not work: exten => 2401,1,Dial(2201,20,) exten => 2401,2,Voicemail(u2201) exten => 2401,3,Hangup exten => 2401,102,voicemail(b2201) exten => 2401,103,hangup If I dial 2401 I get fast busy, what am I doing wrong? mozart*CLI> sip show peers Name/username Host Dyn Nat ACL Mask Port Status 2202/2202 192.168.24.197 D 255.255.255.255 5060 OK (17 ms) 2201/2201 (Unspecified) D 255.255.255.255 0 UNKNOWN pstn/pstn 192.168.24.197 D 255.255.255.255 5061 OK (15 ms) -- Linux Home Automation Neil Cherry ncherry@comcast.net http://home.comcast.net/~ncherry/ (Text only) http://hcs.sourceforge.net/ (HCS II) http://linuxha.blogspot.com/ My HA Blog
Neil, When you use the Dial command you must specify the device to use for dialing, so you cannot use Dial(2201,20) you must use Dial(SIP/2201,20) which informs to use the the SIP device 2201. Regards, Humberto Aicardi> I'm afraid I'm quite confused by what I've found on the Wiki. > > I have the following dial plan that works: > > exten => 2201,1,Dial(sip/2201@gs1.uucp,20,) > exten => 2201,2,Voicemail(u2201) > exten => 2201,3,Hangup > exten => 2201,102,voicemail(b2201) > exten => 2201,104,hangup > > When the phone is in use it goes to voice mail as busy. When not > picked up, as unavailable. > > This one does not work: > > exten => 2401,1,Dial(2201,20,) > exten => 2401,2,Voicemail(u2201) > exten => 2401,3,Hangup > exten => 2401,102,voicemail(b2201) > exten => 2401,103,hangup > > If I dial 2401 I get fast busy, what am I doing wrong? > > mozart*CLI> sip show peers > Name/username Host Dyn Nat ACL Mask Port > Status > 2202/2202 192.168.24.197 D 255.255.255.255 5060 OK > (17 ms) > 2201/2201 (Unspecified) D 255.255.255.255 0 > UNKNOWN > pstn/pstn 192.168.24.197 D 255.255.255.255 5061 OK > (15 ms) >
Humberto Aicardi wrote:> Neil, > > When you use the Dial command you must specify the device to use for > dialing, so you cannot use Dial(2201,20) you must use Dial(SIP/2201,20) > which informs to use the the SIP device 2201.Ah, thanks! That worked with a second extension I set up (SIP/2202). It goes to busy on the SIP/2201 (I test ring, busy & unavailable on SIP/2202 and it works fine). So now I need to figure out why Asterisk sees SIP/2201 as (Unspecified). mozart*CLI> sip show peers Name/username Host Dyn Nat ACL Mask Port Status 2202/2202 192.168.24.197 D 255.255.255.255 5060 OK (16 ms) 2201/2201 (Unspecified) D 255.255.255.255 0 UNKNOWN pstn/pstn 192.168.24.197 D 255.255.255.255 5061 OK (16 ms) 3 sip peers [2 online , 1 offline] Dang Grandstream! -- Linux Home Automation Neil Cherry ncherry@comcast.net http://home.comcast.net/~ncherry/ (Text only) http://hcs.sourceforge.net/ (HCS II) http://linuxha.blogspot.com/ My HA Blog
Neil Cherry wrote:> Humberto Aicardi wrote: >> Neil, >> >> When you use the Dial command you must specify the device to use >> for dialing, so you cannot use Dial(2201,20) you must use >> Dial(SIP/2201,20) which informs to use the the SIP device 2201. > > Ah, thanks! That worked with a second extension I set up (SIP/2202). It > goes to busy on the SIP/2201 (I test ring, busy & unavailable on SIP/2202 > and it works fine). So now I need to figure out why Asterisk sees SIP/2201 > as (Unspecified). > > mozart*CLI> sip show peers > Name/username Host Dyn Nat ACL Mask Port Status > 2202/2202 192.168.24.197 D 255.255.255.255 5060 OK > (16 ms) > 2201/2201 (Unspecified) D 255.255.255.255 0 UNKNOWN > pstn/pstn 192.168.24.197 D 255.255.255.255 5061 OK > (16 ms) > 3 sip peers [2 online , 1 offline] > > Dang Grandstream!Fixed the (Unspecified) problem by doing a SIP reload. Weird. Dang Asterisk? -- Linux Home Automation Neil Cherry ncherry@comcast.net http://home.comcast.net/~ncherry/ (Text only) http://hcs.sourceforge.net/ (HCS II) http://linuxha.blogspot.com/ My HA Blog