It seems I am not getting any digits coming over a SIP trunk. How can I match "anything" or "nothing" and start my extension. Usually I have something like: exten => 55,1,Goto(xxxx,yyy,1) but if 55 does not come across and it appears to be no digits coming across how do I match that that and just start. I thought about _X but that says digits. I dont think I am getting any digits I just want *anything* coming across to start the call. Basically ANY call coming across the trunk just do the same as 55 above. Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160726/dba90689/attachment.html>
_. ? Regards, Marcelo H. Terres <mhterres at gmail.com> IM: mhterres at jabber.mundoopensource.com.br https://www.mundoopensource.com.br https://twitter.com/mhterres https://linkedin.com/in/marceloterres On Tue, Jul 26, 2016 at 11:39 AM, Jerry Geis <geisj at pagestation.com> wrote:> It seems I am not getting any digits coming over a SIP trunk. > > How can I match "anything" or "nothing" and start my extension. > > Usually I have something like: > exten => 55,1,Goto(xxxx,yyy,1) > > but if 55 does not come across and it appears to be no digits > coming across how do I match that that and just start. > > I thought about _X but that says digits. I dont think I am getting any > digits > I just want *anything* coming across to start the call. > > Basically ANY call coming across the trunk just do the same as 55 above. > > Thanks, > > Jerry > > -- > _____________________________________________________________________ > -- 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
Hi Jerry, In article <CABr8-B5Z5k98qs3478zJicuUvOabEGajokEeN6sMzwq8vweCJA at mail.gmail.com>, Jerry Geis <geisj at pagestation.com> wrote:> > It seems I am not getting any digits coming over a SIP trunk. > > How can I match "anything" or "nothing" and start my extension. > > Usually I have something like: > exten => 55,1,Goto(xxxx,yyy,1) > > but if 55 does not come across and it appears to be no digits > coming across how do I match that that and just start. > > I thought about _X but that says digits. I dont think I am getting any > digits > I just want *anything* coming across to start the call. > > Basically ANY call coming across the trunk just do the same as 55 above.It sounds like you are thinking of your SIP trunk as if it is a telephone line, when you first pick up the line, and then send digits over it. SIP doesn't work like that. A SIP call is started by an INVITE message that says who the caller is, and what address they want to call. Normally, the address would be something like sip:12345 at some.realm.com, where the 12345 would be the digits of the number that would be matched against your dialplan. It doesn't have to be, though, and you could have a call to sip:jerry at some.realm.com, which would match the following: exten => jerry,1,Goto(and so on) It is possible, but often not helpful, to have a call that doesn't specify a number, with an address such as sip:some.realm.com, and that should match the "s" extension: exten => s,1,NoOp(Didn't get a number) Maybe that's what is happening in your case, so try adding an "s" extension. Hope this helps, Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
On Tuesday 26 Jul 2016, Jerry Geis wrote:> It seems I am not getting any digits coming over a SIP trunk. > > How can I match "anything" or "nothing" and start my extension. > > Usually I have something like: > exten => 55,1,Goto(xxxx,yyy,1) > > but if 55 does not come across and it appears to be no digits > coming across how do I match that that and just start.Try using extension "s" (for Start). NB: Take care not to include another "s" extension into your context! You can do something like exten => s,1,NoOp(${EXTEN}) which will display in the console, whatever Asterisk thinks was dialled on the far end. If a SIP trunk really is not sending any digits, it can only be used for a single incoming line; the calling party will have to send DTMF to select an extension once your Asterisk answers. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .