[Freeswitch-users] sip headers

Chad Vogel cvogel at lyonl.com
Mon Sep 19 23:44:39 MSD 2011


after enabling this, now fs send our gateway username but we need to send a phone number. how can we override Contact: <sip:1-F2la9 at 10.126.200.6:5060;transport=udp;gw=level3> and make it to: Contact: <sip:+14142211800 at 207.67.30.226:5060;transport=udp;gw=level3<sip:207.67.30.226 at 10.126.200.6:5060;transport=udp;gw=level3>>

gateway config is:

<include>
  <gateway name="level3">
    <param name="username" value="1-F2la9"/>
    <param name="password" value="password"/>
    <param name="proxy" value="4.55.35.60:5070"/>
    <param name="expire-seconds" value="3600"/>
    <param name="register-transport" value="udp"/>
    <param name="register" value="false"/>
    <param name="dtmf-type" value="rfc2833"/>
    <param name="extension-in-contact" value="true"/>
  </gateway>
</include>



On Sep 19, 2011, at 1:22 PM, DJB International wrote:

Check the wiki page http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files on -djbinter

On Mon, Sep 19, 2011 at 10:59 AM, Chad Vogel <cvogel at lyonl.com<mailto:cvogel at lyonl.com>> wrote:
hello,

I was wondering how can modify the sip from and contact headers? I need to pass the phone number in the username not "1-F2la9" to level 3. also i need to do the same with the contact header the username needs to the phone number not  "gw+level3". also why is fs switch send our internal ip address and not our external ip address in the contact field, do i not have something setup correctly?

Request URI: sip:+15618911806 at 4.55.35.60:5070
From: "+15745844329<tel:%2B15745844329>" <sip:1-F2la9 at 4.55.35.60:5070;transport=udp>;tag=69eUt3Fm7pyNg
To: <sip:+15618911806 at 4.55.35.60:5070>
Call-ID: a3db0f98-5d82-122f-c3a5-9595615a4f01
CSeq: 17889518 INVITE
Contact: <sip:gw+level3 at 10.126.200.6:5060;transport=udp;gw=level3>


Chad


FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org<http://www.freeswitch.org/>



FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110919/5d3c261c/attachment.html 


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