Hi guys, I am new here but I have a quick question. <br><br>I have an incoming trunk that sends me calls from various usernames I have with them. Only trouble is they send invites as s@my.ip.addr, not as the username I have with them. So I cannot match extensions like I would want to.<br>
Here is a sample invite<br><br>INVITE sip:s@my.ip.ad.dr SIP/2.0<br>Record-Route: <sip:0.0.0.0;lr=on;ftag=as29ffee59><br>Via: SIP/2.0/UDP 0.0.0.0;branch=z9hG4bK7238.25c90fc7.0<br>Via: SIP/2.0/UDP 0.0.0.0:5060;branch=z9hG4bK1c709971;rport=5060<br>
From: "" <sip:9999999999@host.ip.addr>;tag=as29ffee59<br>To: <<a href="mailto:sip%3Amyusername@mysipprovider.net">sip:myusername@mysipprovider.net</a>><br>Contact: <sip:9999999999@host.ip.addr><br>
Call-ID: 6a379af207d78b3b5f2e8c6c55e64009<br>CSeq: 102 INVITE<br>User-Agent: Asterisk PBX<br>Max-Forwards: 69<br>Date: Fri, 29 May 2009 04:12:09 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Supported: replaces<br>Content-Type: application/sdp<br>Content-Length: 377<br><br>the only distinction between a call to username1 and username2 is in the To: field, but I cannot find something to route the call based on the To caller id. <br>
<br>I think the dialednumber variable would be close to what I want, but apparently that is broken so I am unsure what to do.<br><br>Thanks for any pointers<br><br>