Author |
Message |
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Wed Jul 23, 2014 10:22 am Post subject: Dial Plan Name in FROM field |
|
|
1. Brekeke Product Name and Version:
server-product Brekeke SIP Server
server-ver 2.4.8.6/286.3
2. Java version:
1.7.0_25
3. OS type and the version:
os-name Windows Server 2008 R2
os-ver 6.1
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:
Im trying to setup my invite from brekeke to one of the carriers to look like this:
Example 2: sending 11 digits, E.164, no prefix
INVITE sip:+19198900000@72.15.219.140 SIP/2.0.
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK22f387ce;rport.
From: "SIPRoutes" <sip:9198900000@xxx.xxx.xxx.xxx>;tag=as08310909.
To: <sip:19198900000@72.15.219.140>.
Contact: <sip:9198900000@xxx.xxx.xxx.xxx>.
Call-ID: 1ea01a2f16e135cd1e6cacaf5e79202a@xxx.xxx.xxx.xxx.
CSeq: 102 INVITE.
User-Agent: Vamp UAC.
Max-Forwards: 70.
Date: Wed, 25 Apr 2012 16:14:16 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Content-Type: application/sdp.
Content-Length: 240.
.
v=0.
o=root 3226 3226 IN IP4 xxx.xxx.xxx.xxx.
s=session.
c=IN IP4 xxx.xxx.xxx.xxx.
t=0 0.
m=audio 11444 RTP/AVP 0 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
and im using the dial plan below, the problem is instead of putting a name, it puts the from number as the name also
Matching Patterns | $request = ^INVITE To = sip:1*(..........)@ From = sip:1*(..........)@ $addr = 10.0.0.1
|
Deploy Patterns | $auth = false P-Asserted-Identity = sip:+1%2@mydomain.com;user=phone From = "%2" <sip:+1%2@mydomain.com> To = sip:%1@72.15.219.140 Remote-Party-Id = sip:+1%2@mydomain.com;user=phone Contact = <sip:%2@mydomain.com;user=phone> $session = failover sip:+1%1@72.15.219.140 sip:+1%1@72.15.219.140 &failover.timer.inviting = 5 &failover.timer.provisional = 360 $continue = false
|
|
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Thu Jul 24, 2014 4:11 pm Post subject: |
|
|
Try this.
but I think ver2 doesn't have "From/displayname" variable.
Deploy Patterns | $auth = false P-Asserted-Identity = sip:+1%2@mydomain.com;user=phone From = sip:%2@mydomain.com From/displayname = SIPRoutes To = sip:%1@72.15.219.140 Remote-Party-Id = sip:+1%2@mydomain.com;user=phone Contact = <sip:%2@mydomain.com;user=phone> $session = failover sip:+1%1@72.15.219.140 sip:+1%1@72.15.219.140 &failover.timer.inviting = 5 &failover.timer.provisional = 360 $continue = false
|
|
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Thu Jul 24, 2014 5:24 pm Post subject: |
|
|
I want to grab it on the "matching" and assign it a buffer and use it in deploy |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Thu Jul 24, 2014 6:46 pm Post subject: |
|
|
> I want to grab it on the "matching"
Grab what? Caller-ID? |
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Thu Jul 24, 2014 7:52 pm Post subject: |
|
|
name value from the from field
"name" <sio:2125551234@1.1.1.1;user=phone>
i want to buffer the "name" value so i can use it in the deploy pattern |
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Thu Jul 24, 2014 7:53 pm Post subject: |
|
|
in the From on deploy, %2 carries the phone number, i want the name instead |
|
Back to top |
|
|