[Freeswitch-users] How to add username in SIP packet OPTIONS

"Гришин В.С." Vladislav.Grishin at vts24.ru
Thu Nov 29 15:56:30 MSK 2012


My gataway profile

<include>
   <gateway name="SIP_M200">
   <param name="username" value="USERNAME_STRING"/>
   <param name="realm" value="172.30.0.2"/>
   <param name="register" value="false"/>
   <param name="caller-id-in-from" value="true"/>
   <param name="ping" value="5"/>
   </gateway>
</include>

SIP packet which is accepted by the remote UA

Thu Nov 29 16:38:24 2012
RECEIVE 15:5060 <-- 172.30.0.1:5080
OPTIONS sip:172.30.0.2;transport=udp SIP/2.0
Via: SIP/2.0/UDP 172.30.0.1:5080;rport;branch=z9hG4bK6DKm54N817tUS
Max-Forwards: 70
*From: <sip:172.30.0.2>;tag=BZN3H5ZBpm8gQ
To: <sip:172.30.0.2>*
Call-ID: 79818268-b4c4-1230-60ac-00d0b7ded66a
CSeq: 36758947 OPTIONS
User-Agent: FreeSWITCH-mod_sofia/1.2.3+git~20120920T220849Z~f718a5e8e6
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, 
REGISTER, REFER, NOTIFY
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Length: 0

but in reply arrives nothing...    the developer points to that that in 
a SIP packet  there is no field username in

*From: <sip:172.30.0.2>;tag=BZN3H5ZBpm8gQ     <----in this string no 
username
To: <sip:172.30.0.2>      <---- and  in this string no username*

it is necessary to make as

From: "USERNAME_STRING" <sip:USERNAME_STRING at 172.30.0.1>;tag=9DcB7gSNZZ41j

What it is necessary to change or add in a gateway profile (or other 
place)  for this purpose?

Vladislav Grishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121129/7a0bc494/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list