I'm trying to get inbound DIDs working via SIP. I have 20 DIDs coming in via a single SIP profile in sip.conf. I was hoping to have these matched in extensions.conf, so I have setup lines like this: exten=>949271NNNN,1, Goto(mainmenu,s,1) Unfortunately these aren't getting matched and I'm getting this error: Looking for s in druid-default (domain 949271NNNN) SIP/2.0 404 Not Found Any hints or tips? TIA
Try changing it to: exten => _949271NNNN,1,Goto(whatever) another way to troubleshoot and figure out what you are getting for the DID would be: exten => _X.,1,Noop(Exten is: ${EXTEN}) watch the CLI to see what DID is coming in. On 8/11/06, Mr. Jones <worldsense@gmail.com> wrote:> I'm trying to get inbound DIDs working via SIP. > > I have 20 DIDs coming in via a single SIP profile in sip.conf. > > I was hoping to have these matched in extensions.conf, so I have setup > lines like this: > > exten=>949271NNNN,1, Goto(mainmenu,s,1) > > Unfortunately these aren't getting matched and I'm getting this error: > > Looking for s in druid-default (domain 949271NNNN) > SIP/2.0 404 Not Found > > Any hints or tips? > > TIA > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Vadim Berezniker
2006-Aug-11 11:39 UTC
[asterisk-users] Inbound Calls & SIP/2.0 404 Not Found
Perhaps the context in sip.conf doesn't match the context in the dial plan. ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of Mr. Jones Sent: Fri 8/11/2006 2:34 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Inbound Calls & SIP/2.0 404 Not Found I'm trying to get inbound DIDs working via SIP. I have 20 DIDs coming in via a single SIP profile in sip.conf. I was hoping to have these matched in extensions.conf, so I have setup lines like this: exten=>949271NNNN,1, Goto(mainmenu,s,1) Unfortunately these aren't getting matched and I'm getting this error: Looking for s in druid-default (domain 949271NNNN) SIP/2.0 404 Not Found Any hints or tips? TIA _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4119 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060811/b3653553/attachment.bin
If I am following you right, for extension matching you need to have a "_" in front of the number. So your example should be like this: exten => _949927NNNN,1,Goto(mainmenu,s,1) Also I don't know if you did this on purpose or not but N will only match for numbers 2-9, if you want 0-9 you will want to use an X. Otherwise without the "_" in front of the number it will not extension pattern match. There are other pattern matching characters too, but you can read them here: http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns Kevin Mr. Jones wrote:> I'm trying to get inbound DIDs working via SIP. > > I have 20 DIDs coming in via a single SIP profile in sip.conf. > > I was hoping to have these matched in extensions.conf, so I have setup > lines like this: > > exten=>949271NNNN,1, Goto(mainmenu,s,1) > > Unfortunately these aren't getting matched and I'm getting this error: > > Looking for s in druid-default (domain 949271NNNN) > SIP/2.0 404 Not Found > > Any hints or tips? > > TIA > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users