How can I configure TO and FROM in the invite message
Hi, Currently, the invite message looks as follows INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@SERVER_IP>;tag=2rH67Q3aa1rpe To: <sip:1002@CLIENT_IP:5060> Is there a way to configure FS so the message will look like this: INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@ACCOUNT_DOMAIN>;tag=2rH67Q3aa1rpe To: <sip:1002@ACCOUNT_DOMAIN:5060> That is, at "From" having the account's domain name (e.g. sip:1001@example.com) instead of the server's IP address. and having the same at "To" thanks @tzury
Is this what you are looking for? http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain jmesquita On Wed, Sep 16, 2009 at 10:58 AM, Tzury Bar Yochay <tzury.by@reguluslabs.com
wrote:
Hi, Currently, the invite message looks as follows
INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@SERVER_IP>;tag=2rH67Q3aa1rpe To: <sip:1002@CLIENT_IP:5060>
Is there a way to configure FS so the message will look like this:
INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@ACCOUNT_DOMAIN>;tag=2rH67Q3aa1rpe To: <sip:1002@ACCOUNT_DOMAIN:5060>
That is, at "From" having the account's domain name (e.g. sip:1001@example.com <sip%3A1001@example.com>) instead of the server's IP address. and having the same at "To"
thanks @tzury
_______________________________________________ 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
Or you setup a gateway and set the from-domain /b On Sep 16, 2009, at 10:00 AM, João Mesquita wrote:
Is this what you are looking for?
http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain
jmesquita
On Wed, Sep 16, 2009 at 10:58 AM, Tzury Bar Yochay <tzury.by@reguluslabs.com
wrote: Hi, Currently, the invite message looks as follows
INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@SERVER_IP>;tag=2rH67Q3aa1rpe To: <sip:1002@CLIENT_IP:5060>
Is there a way to configure FS so the message will look like this:
INVITE sip:1002@CLIENT_IP:5060 SIP/2.0 Via: SIP/2.0/UDP SERVER_IP;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:1001@ACCOUNT_DOMAIN>;tag=2rH67Q3aa1rpe To: <sip:1002@ACCOUNT_DOMAIN:5060>
That is, at "From" having the account's domain name (e.g. sip:1001@example.com) instead of the server's IP address. and having the same at "To"
thanks @tzury
_______________________________________________ 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
_______________________________________________ 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
in which file under which section should I specify this <action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/gw1/$1@domain.org"/>
You can do that in your dialplan. Not sure it'll fix all your options unless you do both the gateway and the sip_invite_domain. /b On Sep 17, 2009, at 4:19 AM, Tzury Bar Yochay wrote:
in which file under which section should I specify this
<action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/ gw1/$1@domain.org"/>
participants (3)
-
Brian West
-
João Mesquita
-
Tzury Bar Yochay