Hi, I want FS receiving an INVITE and generating a leg_b like this: INVITE sip:alice@domain.org SIP/2.0 but I need this INVITE being sent to a specific IP X.X.X.X (instead of resolving "domain.org" and so). This is: I need the Request URI being "sip:alice@domain.org" but FS sending the request to IP X.X.X.X, is it possible? Thanks a lot. -- Iñaki Baz Castillo
El Domingo, 23 de Noviembre de 2008, Iñaki Baz Castillo escribió:
Hi, I want FS receiving an INVITE and generating a leg_b like this:
INVITE sip:alice@domain.org SIP/2.0
but I need this INVITE being sent to a specific IP X.X.X.X (instead of resolving "domain.org" and so).
This is: I need the Request URI being "sip:alice@domain.org" but FS sending the request to IP X.X.X.X, is it possible?
Ok, I've got it creating a gateway (without registration). -- Iñaki Baz Castillo
YOu can also use the sip_invite_domain variable to accomplish the same thing. /b On Nov 23, 2008, at 4:21 AM, Iñaki Baz Castillo wrote:
El Domingo, 23 de Noviembre de 2008, Iñaki Baz Castillo escribió:
Hi, I want FS receiving an INVITE and generating a leg_b like this:
INVITE sip:alice@domain.org SIP/2.0
but I need this INVITE being sent to a specific IP X.X.X.X (instead of resolving "domain.org" and so).
This is: I need the Request URI being "sip:alice@domain.org" but FS sending the request to IP X.X.X.X, is it possible?
Ok, I've got it creating a gateway (without registration).
-- Iñaki Baz Castillo
_______________________________________________ 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
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
YOu can also use the sip_invite_domain variable to accomplish the same thing.
Thanks, it works but just if I use it as: <action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/gw1/XXX@XXXXXXX"/> Why doesn't it work if I use: <action application="set" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/> Thanks a lot. -- Iñaki Baz Castillo
Iñaki Baz Castillo napsal(a):
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
YOu can also use the sip_invite_domain variable to accomplish the same thing.
Thanks, it works but just if I use it as:
<action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/gw1/XXX@XXXXXXX"/>
Why doesn't it work if I use:
<action application="set" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/>
Hi Iñaki, I have just a thought - try "export" instead of "set": <action application="export" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/> Best regards, kokoska.rokoska
El Lunes, 24 de Noviembre de 2008, kokoska rokoska escribió:
Iñaki Baz Castillo napsal(a):
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
YOu can also use the sip_invite_domain variable to accomplish the same thing.
Thanks, it works but just if I use it as:
<action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/gw1/XXX@XXXXXXX"/
Why doesn't it work if I use:
<action application="set" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/>
Hi Iñaki,
I have just a thought - try "export" instead of "set":
<action application="export" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/>
Thanks! I was reading about "export" app right now :) -- Iñaki Baz Castillo
Iñaki Baz Castillo napsal(a):
El Lunes, 24 de Noviembre de 2008, kokoska rokoska escribió:
Iñaki Baz Castillo napsal(a):
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
YOu can also use the sip_invite_domain variable to accomplish the same thing. Thanks, it works but just if I use it as:
<action application="bridge" data="{sip_invite_domain=${sip_from_host}}sofia/gateway/gw1/XXX@XXXXXXX"/ Why doesn't it work if I use:
<action application="set" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/> Hi Iñaki,
I have just a thought - try "export" instead of "set":
<action application="export" data="sip_invite_domain=${sip_from_host}"/> <action application="bridge" data="sofia/gateway/gw1/XXX@XXXXXXX"/>
Thanks! I was reading about "export" app right now :)
You are welcome! Nice to see xxxSER guys at FreeSWITCH :-) Best regards, kokoska.rokoska
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
YOu can also use the sip_invite_domain variable to accomplish the same thing.
Since that variable is no documented I've started a "SIP related variables" section in the wiki, starting with "sip_invite_domain". I hope it's correct: http://wiki.freeswitch.org/wiki/Channel_Variables#SIP_related_variables -- Iñaki Baz Castillo
participants (3)
-
Brian West
-
Iñaki Baz Castillo
-
kokoska rokoska