[Asterisk-Dev] Evaluating trailing numbers in extensions.conf

Abhishek Tiwari abhitiwari at gmail.com
Sun Mar 13 02:53:13 MST 2005


Hi,
   you can use StripMSD if you are sure of the number of dialled digits.
or you can use {$EXTEN:-1:1}, where {$EXTEN:a:b} means first b digits
starting from a, from the front or back depending whether a > 0 or a <
0.
additionally, can have your own variables, just look at
pbx_retrieve_variable in pbx.c

-Abhishek

Drishti Soft
www.drishti-soft.com

On Sun, 13 Mar 2005 09:27:38 +0100, Harald Milz <hm at seneca.muc.de> wrote:
> Hi,
> 
> 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.
> 
> 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-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list