Dial Plan Name in FROM field

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Dial Plan Name in FROM field

Post by Izzyg »

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
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

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
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

I want to grab it on the "matching" and assign it a buffer and use it in deploy
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

> I want to grab it on the "matching"

Grab what? Caller-ID?
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

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
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

in the From on deploy, %2 carries the phone number, i want the name instead
Post Reply