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

Harald Milz hm at seneca.muc.de
Sun Mar 13 01:27:38 MST 2005


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



More information about the asterisk-dev mailing list