Contact header on INVITE
Hi, The INVITE request from my FreeSWITCH contains (1.2.3.4 - my public ip): Contact: <sip:gw+myprovider1@1.2.3.4:5080;transport=udp> but voip provider expects: Contact: <sip:username@1.2.3.4:5080;transport=udp> Is there any posiibility to change the Contact header value in gateway/dialplan configuration? Thanks, -- Łukasz Czerpak | PGP: 0x532D8E1B [subkeys.pgp.net]
I added the param extension-in-contact (true/false) to latest trunk. Be aware it's broken behavior for your provider to demand a certain username in the contact. The reason we put gw+<gateway name> in the contact user is it's the only guaranteed way to find out what gateway the call was associated with. We can of course put it in the params on the contact but we know many sip endpoints eat off all the params from your contact when you register. So we use the contact user to avoid this issue. If you use this new parameter and set it to true, the contact will be whatever is in the "extension" parameter which defaults to the same as the username, so just setting this parameter should do what you want but it will also disable our ability to associate the call with the gateway it was placed from. 2009/3/6 Łukasz Czerpak <lukasz@czerpak.eu>
Hi,
The INVITE request from my FreeSWITCH contains (1.2.3.4 - my public ip):
Contact: <sip:gw+myprovider1@1.2.3.4:5080;transport=udp>
but voip provider expects:
Contact: <sip:username@1.2.3.4:5080;transport=udp>
Is there any posiibility to change the Contact header value in gateway/dialplan configuration?
Thanks,
-- Łukasz Czerpak | PGP: 0x532D8E1B [subkeys.pgp.net]
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Łukasz Czerpak