[asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Joe Wood
Hello.

I have been beating my head over this problem for about 6 hours now.

I have a SIP peer, who I register to (successfully), who should be
directing all incoming calls at my [default] stanza in my
extensions.conf:

[ Context 'default' created by 'pbx_config' ]
  's' =1. Wait(1)[pbx_config]
2. Answer()   [pbx_config]
3. Background(welcome)[pbx_config]
4. Background(and)[pbx_config]
5. Background(thank-you-for-calling)  [pbx_config]
6. Background(conference-reservations)[pbx_config]
7. Waitfor()  [pbx_config]
8. Hangup()   [pbx_config]

Unfortunately, no matter how I configure extensions.conf or sip.conf,
the phone call always ends up saying: Extension is unavailable.
Please leave your message after the tone.

sip.conf:

[general]
register = NPANXX:passw...@service_provider_ip
registertimeout=29
registerattempts=0
defaultexpiry=60

[DID_NUMBER]
type=peer
context=default
host=SERVICE_PROVIDER_IP
authuser=DID_NUMBER
fromuser=DID_NUMBER
fromdomain=SERVICE_PROVIDER_REALM
remotesecret=SERVICE_PROVIDER_PASSWD
secret=SERVICE_PROVIDER_PASSWD
dtmfmode=rfc2833
disallow=all
allow=ulaw
qualify=yes

I am attempting just to get the starting point where I can direct
users through my asterisk box, but it won't direct users to the 's'
extention, only to some voicemail box. I've removed the voicemail
config.

My extensions.conf is tiny:

[globals]

[general]

[default]
exten = s,1,Wait(1)
exten = s,n,Answer()
exten = s,n,Background(welcome)
exten = s,n,Background(and)
exten = s,n,Background(thank-you-for-calling)
exten = s,n,Background(conference-reservations)
exten = s,n,Waitfor()
exten = s,n,Hangup()


What am I doing wrong here?



Thanks for any help you can give.


Joe

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Warren Selby
On Wed, Aug 4, 2010 at 8:52 PM, Joe Wood sch...@gmail.com wrote:

 Hello.

 I have been beating my head over this problem for about 6 hours now.

 I have a SIP peer, who I register to (successfully), who should be
 directing all incoming calls at my [default] stanza in my
 extensions.conf:

 [ Context 'default' created by 'pbx_config' ]
  's' =1. Wait(1)
  [pbx_config]
2. Answer()
 [pbx_config]
3. Background(welcome)
  [pbx_config]
4. Background(and)
  [pbx_config]
5. Background(thank-you-for-calling)
  [pbx_config]
6. Background(conference-reservations)
  [pbx_config]
7. Waitfor()
  [pbx_config]
8. Hangup()
 [pbx_config]

 Unfortunately, no matter how I configure extensions.conf or sip.conf,
 the phone call always ends up saying: Extension is unavailable.
 Please leave your message after the tone.

 sip.conf:

 [general]
 register = NPANXX:passw...@service_provider_ip
 registertimeout=29
 registerattempts=0
 defaultexpiry=60

 [DID_NUMBER]
 type=peer
 context=default
 host=SERVICE_PROVIDER_IP
 authuser=DID_NUMBER
 fromuser=DID_NUMBER
 fromdomain=SERVICE_PROVIDER_REALM
 remotesecret=SERVICE_PROVIDER_PASSWD
 secret=SERVICE_PROVIDER_PASSWD
 dtmfmode=rfc2833
 disallow=all
 allow=ulaw
 qualify=yes

 I am attempting just to get the starting point where I can direct
 users through my asterisk box, but it won't direct users to the 's'
 extention, only to some voicemail box. I've removed the voicemail
 config.

 My extensions.conf is tiny:

 [globals]

 [general]

 [default]
 exten = s,1,Wait(1)
 exten = s,n,Answer()
 exten = s,n,Background(welcome)
 exten = s,n,Background(and)
 exten = s,n,Background(thank-you-for-calling)
 exten = s,n,Background(conference-reservations)
 exten = s,n,Waitfor()
 exten = s,n,Hangup()


 What am I doing wrong here?



 Thanks for any help you can give.


 Joe


You don't have any extensions in your default context that match the
extension that your sip peer is dialing in on.  's' is not a default
extension for SIP...try using _X., and see what you get.  Bump up the CLI
(core set verbose 10) and then repost a failed called attempt.  Some SIP
providers also use a + symbol in front of their inbound calls, so you may
need to use _+X., instead.


-- 
Thanks,
--Warren Selby
http://www.selbytech.com
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Joe Wood
I don't see any

On Wed, Aug 4, 2010 at 7:04 PM, Warren Selby wcse...@selbytech.com wrote:

 You don't have any extensions in your default context that match the
 extension that your sip peer is dialing in on.  's' is not a default
 extension for SIP...try using _X., and see what you get.  Bump up the CLI
 (core set verbose 10) and then repost a failed called attempt.  Some SIP
 providers also use a + symbol in front of their inbound calls, so you may
 need to use _+X., instead.

I don't see any call attempt/logs when I bump up the verbosity, and
when I check my verbose logs I show:

[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Registered extension
context 'default' (0xb77980c0) in local table 0xb77960c0; registrar:
pbx_config
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 1 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 2 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 3 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 4 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 5 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 6 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 7 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '_X.'
priority 8 to default (0xb77980c0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Registered extension
context 'parkedcalls' (0xb7797ee0) in local table 0xb77960c0;
registrar: features
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- merging
incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context,
registrar = pbx_config
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Added extension '700'
priority 1 to parkedcalls (0xb7797ee0)
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Time to scan old
dialplan and merge leftovers back into the new: 0.89 sec
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Time to restore hints
and swap in new dialplan: 0.02 sec
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Time to delete the old
dialplan: 0.11 sec
[Aug  4 19:16:42] VERBOSE[12287] pbx.c: -- Total time
merge_contexts_delete: 0.000102 sec
[Aug  4 19:17:04] VERBOSE[12255] netsock.c:   == Using SIP RTP CoS mark 5
[Aug  4 19:19:04] VERBOSE[12255] netsock.c:   == Using SIP RTP CoS mark 5
[Aug  4 19:21:39] VERBOSE[12255] netsock.c:   == Using SIP RTP CoS mark 5

I get the same error. Same random voicemail when no voicemail is configured.

I was under the impressing that s was the catchall for all incoming
trunks. What has changed?

Joe

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Warren Selby
On Wed, Aug 4, 2010 at 9:25 PM, Joe Wood sch...@gmail.com wrote:

 I don't see any

 On Wed, Aug 4, 2010 at 7:04 PM, Warren Selby wcse...@selbytech.com
 wrote:
 
  You don't have any extensions in your default context that match the
  extension that your sip peer is dialing in on.  's' is not a default
  extension for SIP...try using _X., and see what you get.  Bump up the CLI
  (core set verbose 10) and then repost a failed called attempt.  Some SIP
  providers also use a + symbol in front of their inbound calls, so you may
  need to use _+X., instead.

 I don't see any call attempt/logs when I bump up the verbosity, and
 when I check my verbose logs I show:


The next step would be to enable sip debug on the peer you're trying to
receive calls from (sip set debug peer PEERNAME or sip set debug ip
IPADDRESS).  Then send another call inbound and see what's happening.  As
far as the 's' extension, that's the start extension, it's used when no
other extension information is presented.  Pretty much every SIP peer I've
ever seen presents an extension when entering a context, and thus the 's'
extension doesn't catch it.  I've typically only seen 's' used in Macros and
with inbound analog lines.

-- 
Thanks,
--Warren Selby
http://www.selbytech.com
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Joe Wood
On Wed, Aug 4, 2010 at 7:49 PM, Warren Selby wcse...@selbytech.com wrote:
 On Wed, Aug 4, 2010 at 9:25 PM, Joe Wood sch...@gmail.com wrote:

 I don't see any

 On Wed, Aug 4, 2010 at 7:04 PM, Warren Selby wcse...@selbytech.com
 wrote:
 
  You don't have any extensions in your default context that match the
  extension that your sip peer is dialing in on.  's' is not a default
  extension for SIP...try using _X., and see what you get.  Bump up the
  CLI
  (core set verbose 10) and then repost a failed called attempt.  Some SIP
  providers also use a + symbol in front of their inbound calls, so you
  may
  need to use _+X., instead.

 I don't see any call attempt/logs when I bump up the verbosity, and
 when I check my verbose logs I show:


 The next step would be to enable sip debug on the peer you're trying to
 receive calls from (sip set debug peer PEERNAME or sip set debug ip
 IPADDRESS).  Then send another call inbound and see what's happening.  As
 far as the 's' extension, that's the start extension, it's used when no
 other extension information is presented.  Pretty much every SIP peer I've
 ever seen presents an extension when entering a context, and thus the 's'
 extension doesn't catch it.  I've typically only seen 's' used in Macros and
 with inbound analog lines.


My experience with Asterisk in the past has been with inbound analog
lines so that would make sense :)

See if you spot anything weird here:

--- SIP read from UDP:209.221.186.98:5060 ---
INVITE sip:s...@209.221.186.50 SIP/2.0
Record-Route: sip:209.221.186.98;ftag=f7093e2d7e16a927d0816f6f5ed7aba4;lr
Via: SIP/2.0/UDP
209.221.186.98;branch=z9hG4bK6b95.ae84c9620e19761029084a0f85255c29.0
Via: SIP/2.0/UDP
209.221.186.98:5071;branch=z9hG4bKf0a046579186bf058ba7783ed98a5a66;rport=5071
Max-Forwards: 16
From: 2538544199
sip:2538544...@209.221.186.98;tag=f7093e2d7e16a927d0816f6f5ed7aba4
To: sip:2063161...@209.221.186.98
Call-ID: ba711218-1ae3-122e-41bd-18a905721e58-b2b_1
CSeq: 200 INVITE
Contact: Anonymous sip:2538544...@209.221.186.98:5071
Expires: 300
User-Agent: Sippy Softswitch v2.0.80
cisco-GUID: 1225641884-3786690633-966044271-4144140181
h323-conf-id: 1225641884-3786690633-966044271-4144140181
Content-Length: 321
Content-Type: application/sdp

v=0
o=- 1280279699622 1280279699622 IN IP4 209.221.186.98
s=-
c=IN IP4 209.221.186.98
t=0 0
m=audio 60304 RTP/AVP 0
a=fmtp:4 bitrate=6300;annexa=no
a=rtpmap:96 iLBC/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=20
a=fmtp:18 annexb=no
a=rtpmap:98 telephone-event/8000
a=oldmediaip:208.76.155.20
a=nortpproxy:yes

-
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 0 [ 35]: INVITE sip:s...@209.221.186.50 SIP/2.0
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 1 [ 75]: Record-Route:
sip:209.221.186.98;ftag=f7093e2d7e16a927d0816f6f5ed7aba4;lr
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 2 [ 85]: Via: SIP/2.0/UDP
209.221.186.98;branch=z9hG4bK6b95.ae84c9620e19761029084a0f85255c29.0
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 3 [ 94]: Via: SIP/2.0/UDP
209.221.186.98:5071;branch=z9hG4bKf0a046579186bf058ba7783ed98a5a66;rport=5071
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 4 [ 16]: Max-Forwards: 16
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 5 [ 85]: From: 2538544199
sip:2538544...@209.221.186.98;tag=f7093e2d7e16a927d0816f6f5ed7aba4
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 6 [ 35]: To: sip:2063161...@209.221.186.98
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 7 [ 51]: Call-ID: ba711218-1ae3-122e-41bd-18a905721e58-b2b_1
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 8 [ 16]: CSeq: 200 INVITE
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
 9 [ 55]: Contact: Anonymous sip:2538544...@209.221.186.98:5071
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
10 [ 12]: Expires: 300
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
11 [ 36]: User-Agent: Sippy Softswitch v2.0.80
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
12 [ 54]: cisco-GUID: 1225641884-3786690633-966044271-4144140181
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
13 [ 56]: h323-conf-id: 1225641884-3786690633-966044271-4144140181
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
14 [ 19]: Content-Length: 321
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
15 [ 29]: Content-Type: application/sdp
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:  Header
16 [  0]:
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:Body
 0 [  3]: v=0
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:Body
 1 [ 53]: o=- 1280279699622 1280279699622 IN IP4 209.221.186.98
[Aug  4 20:21:40] DEBUG[12487]: chan_sip.c:7857 parse_request:   

Re: [asterisk-users] Incoming SIP Calls dumped to non-existent VM no matter what extensions.conf setup is used

2010-08-04 Thread Warren Selby
On Wed, Aug 4, 2010 at 10:25 PM, Joe Wood sch...@gmail.com wrote:

 On Wed, Aug 4, 2010 at 7:49 PM, Warren Selby wcse...@selbytech.com
 wrote:
  On Wed, Aug 4, 2010 at 9:25 PM, Joe Wood sch...@gmail.com wrote:
 

 My experience with Asterisk in the past has been with inbound analog
 lines so that would make sense :)

 See if you spot anything weird here:


Try adding insecure=invite to the DID_NUMBER peer, reload SIP and try your
call again.  By the way, it looks like your SIP provider has a built-in
auto-failover to voicemail setup.  You may want to get them to disable that
once you get everything working on your end.

-- 
Thanks,
--Warren Selby
http://www.selbytech.com
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users