joeh Posted February 22, 2007 Report Share Posted February 22, 2007 I operate a SIP Proxy server. Often, to assign PSTN numbers to users I alias the PSTN number to their UserID. In this instance, the user has a PBXnSIP box configured with domain.local e.g. My user may be sip:1000@sip.provider.com - but I alias a PSTN phone number to that e.g. sip:00123123@sip.provider.com There is a trunk configured on the PBX to provider.com that registers using user 1000. If I call sip:00123123@sip.provider.com calls come in as; INVITE sip:1000@192.168.236.20:5060 SIP/2.0 From: "Test" <sip:2000@sip.provider.com>;tag=7349e455 To: <sip:00123123@sip.provider.com>;tag=29226 Where sip:00123123@sip.provider.com is the alias. I've tried a few different expressions. Does the pattern take into account the sip: prefix, the domain - or just the user portion? Whats the most simple way to say, match the user portion (in this case 00123123)? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted February 24, 2007 Report Share Posted February 24, 2007 I think you have to use the To-header routing. Did you check http://wiki.pbxnsip.com/index.php/Inbound_Calls_on_Trunk? Maybe a pattern like !(.*)!\1!t! does the job already. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.