Set an gateway parameter for external gateway (skype)
Hello, I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax. I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side * set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea? Best regards Peter
i don't know if it's a wise solution, but you can make a db insert before bridge on freeswitch server, kypiax server can query db after answer to get an idea! On Fri, Jan 29, 2010 at 2:54 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello,
I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax.
I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side
* set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea?
Best regards Peter
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
Setting a sip header is a more elegant way ... http://wiki.freeswitch.org/wiki/Sofia#Adding_Request_Headers -wasim On Fri, Jan 29, 2010 at 4:21 AM, Ghulam Mustafa <mustafa.pk@gmail.com>wrote:
i don't know if it's a wise solution, but you can make a db insert before bridge on freeswitch server, kypiax server can query db after answer to get an idea!
On Fri, Jan 29, 2010 at 2:54 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello,
I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax.
I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side
* set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea?
Best regards Peter
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
_______________________________________________ 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
-- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
why not just use dialplan matching? assume FS1 has gateway named skype, originate sofia/gateway/skype/<your_dedicated_skype_name>+<other_skype_name_you_want_to_dial on your FS/skype server, set dialplan: $destination_number to match (.*)\+(.*), then you can bridge skypiax/$1/$2 2010/1/29 Wasim Baig <wasim@convergence.pk>:
Setting a sip header is a more elegant way ...
http://wiki.freeswitch.org/wiki/Sofia#Adding_Request_Headers
-wasim
On Fri, Jan 29, 2010 at 4:21 AM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
i don't know if it's a wise solution, but you can make a db insert before bridge on freeswitch server, kypiax server can query db after answer to get an idea!
On Fri, Jan 29, 2010 at 2:54 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello,
I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax.
I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side
* set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea?
Best regards Peter
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
_______________________________________________ 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
-- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
_______________________________________________ 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
Hello Sven I think that's a good idea. I just tried: "+" is not valid in a Skype username. So I may use it. I will try that and give some feedback. Best regards Peter Seven Du schrieb:
why not just use dialplan matching?
assume FS1 has gateway named skype,
originate sofia/gateway/skype/<your_dedicated_skype_name>+<other_skype_name_you_want_to_dial
on your FS/skype server, set dialplan:
$destination_number to match (.*)\+(.*), then you can
bridge skypiax/$1/$2
2010/1/29 Wasim Baig <wasim@convergence.pk>:
Setting a sip header is a more elegant way ...
http://wiki.freeswitch.org/wiki/Sofia#Adding_Request_Headers
-wasim
On Fri, Jan 29, 2010 at 4:21 AM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
i don't know if it's a wise solution, but you can make a db insert before bridge on freeswitch server, kypiax server can query db after answer to get an idea!
On Fri, Jan 29, 2010 at 2:54 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello,
I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax.
I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side
* set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea?
Best regards Peter
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
_______________________________________________ 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
-- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
_______________________________________________ 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
I would use SIP for intra-FS communications (as anthm rightly told me when I was implementing a remote-protocol-kludge to have the skype clients running in a machine different from the primary FS server - that's probably what you want to obtain - not having skype clients running in the primary FS server) so FS1 <-> SIP <-> FS2 <-> skype you can make good use of an URI like "skype/skypeusername" as detailed in the wiki page http://wiki.freeswitch.org/wiki/Skypiax_Skype_Endpoint_and_Trunk#Dialplan So, you can have something like FS1 calling sip:skype/skypeusername at FS2 , not sure about syntax tough. -gm On Fri, Jan 29, 2010 at 12:32 PM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello Sven
I think that's a good idea. I just tried: "+" is not valid in a Skype username. So I may use it.
I will try that and give some feedback.
Best regards Peter
Seven Du schrieb:
why not just use dialplan matching?
assume FS1 has gateway named skype,
originate sofia/gateway/skype/<your_dedicated_skype_name>+<other_skype_name_you_want_to_dial
on your FS/skype server, set dialplan:
$destination_number to match (.*)\+(.*), then you can
bridge skypiax/$1/$2
2010/1/29 Wasim Baig <wasim@convergence.pk>:
Setting a sip header is a more elegant way ...
http://wiki.freeswitch.org/wiki/Sofia#Adding_Request_Headers
-wasim
On Fri, Jan 29, 2010 at 4:21 AM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
i don't know if it's a wise solution, but you can make a db insert before bridge on freeswitch server, kypiax server can query db after answer to get an idea!
On Fri, Jan 29, 2010 at 2:54 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Hello,
I have a main freeswitch server and a separate Freeswitch/Skype server with mod_skypiax.
I want main freeswitch server to tell the Freeswitch/Skype server to use a dedicated Skype interface(interface1, interface2 etc). What is the best way to pass this variable? Some ideas from my side
* set caller_id_number or caller_id_number_name, as these are overwritten by Skype anyway. But this is not a clean solution * use another UDP port for each gateway, but this is a huge effort if the number of gateways becomes larger * set a dedicated sip header for this. Reading sip-header is easy (documented) but how to set my own sip header entry in FS? * any other idea?
Best regards Peter
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
_______________________________________________ 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
-- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
_______________________________________________ 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
_______________________________________________ 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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
participants (5)
-
Ghulam Mustafa
-
Giovanni Maruzzelli
-
Peter P GMX
-
Seven Du
-
Wasim Baig