[Asterisk-Users] How can I eveluate trailing numbers in
extensions.conf?
Umar Sear
umarsear at gmail.com
Sun Mar 13 03:01:27 MST 2005
Checkout
http://www.voip-info.org/wiki-Asterisk+variables
I believe that should have the answer for you.
furthermore assuming that your number is always going to be 12 digits.
exten => _NXX.,1,SetVar(mynumber=${EXTEN:0:12}) - will give you your number.
Hope this helps.
Umar
On Sun, 13 Mar 2005 09:25:11 +0100, Harald Milz <hm at seneca.muc.de> wrote:
> Hi,
>
> this message seems to not have made it to the list the first time - sorry
> if it did.
>
> My SIP provider includes trailing numbers to my account just fine, like
>
> ACK sip:sip at 217.232.200.201 SIP/2.0
> Via: SIP/2.0/UDP 217.10.79.9;branch=z9hG4bKc62e.644d2d75.0
> From: "Anonymous" <sip:asterisk at 217.10.66.71>;tag=as4b25d20f
> Call-ID: 0a1400cf74e89e926fa6098c3ba5c874 at 217.10.66.71
> To: <sip:4986453424562 at sipgate.net>;tag=as406f4254
> CSeq: 102 ACK
> User-Agent: sipgate ser
> Content-Length: 0
>
> where 498645342456 is my SIP account phone number that can be reached from
> the outside just fine. My question is, how can I evaluate the trailing "2"
> in my extensions.conf? This would be ideal for direct dialing to an attached
> phone, and not be restricted to a single digit.
>
> <asterisk-dev> The full number is included in the SIP message but does * keep it
> somewhere internally so that one could maybe add another externally usable
> * variable? I browsed the source code but could not find anything... TIA!
>
> Ciao,
> hm
>
> --
> Today is the first day of the rest of the mess
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list