how to register a gateway to freeswitch
Hello everybody I have FreeSwitch running and i have done some call between extensions, i bought the book on amazon its a great book but its focus to make a pbx , i could not find an answer to my problem, i have a Quintum and 2 land lines connected to it. My quintum does not have a fixed IP, i wanna use my Quintum as a gateway to sent call to PSTN, but i cant beacause i dont know the ip address. i wanna know if is there a way to register the gateway to freeswitch? or maybe i can register the quintum as a endpoin but how can i sent the dialed number()destination_number) to that endpoint or user? so i either want to use mod distributor (simple round-robin) and Limit on it, beacuse all examples i have seen is for using with gateways! I have read mod sofia and almost the whole book but i can find any example for doing this! Thanks in advance for everyone in this project that is amazing!
Register your Quintum to FS, and in FS, you will be able to dial a specific number through the Quintum with the syntax: <action application="bridge" data="sofia/profile/user%domain^$1"/> where $1 is of course the number you want to dial ^ allows to replace the dialed number in the INVITE you send to the client. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 01/09/2010 à 06:01, Octavio Duarte a écrit :
Hello everybody
I have FreeSwitch running and i have done some call between extensions, i bought the book on amazon its a great book but its focus to make a pbx , i could not find an answer to my problem, i have a Quintum and 2 land lines connected to it. My quintum does not have a fixed IP, i wanna use my Quintum as a gateway to sent call to PSTN, but i cant beacause i dont know the ip address. i wanna know if is there a way to register the gateway to freeswitch? or maybe i can register the quintum as a endpoin but how can i sent the dialed number()destination_number) to that endpoint or user? so i either want to use mod distributor (simple round-robin) and Limit on it, beacuse all examples i have seen is for using with gateways!
I have read mod sofia and almost the whole book but i can find any example for doing this!
Thanks in advance for everyone in this project that is amazing!
_______________________________________________ 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
Thanks David for your help now the quintum is registered, i use the user 1008 that is already created in FS so i have done some test call 1. when i call 1008 quintum see the call but i got an error(503) NORMAL_TEMPORARY_FAILURE, quintum see the call but cant proccess because i have not sent the real number to call 2 i have this just to test a call <extension name="Test Test"> <condition field="destination_number" expression="^(015555306078)$"> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/> </condition> </extension> but i got this cant find user [1008%Domain^015555306078@Domain] as a warning cannot create outgoing cgannel of type [user] cause: [SUSCRIBER_ABSENT] as a error i exchange the % with @ and i got the same, and the quintum does not register the call do you have any idea what is going on? or another way to send the destination_number? Thank in advance for you help! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
On Wed, Sep 1, 2010 at 11:33 PM, xduvox <xduvox@gmail.com> wrote:
Thanks David for your help now the quintum is registered, i use the user 1008 that is already created in FS
so i have done some test call 1. when i call 1008 quintum see the call but i got an error(503) NORMAL_TEMPORARY_FAILURE, quintum see the call but cant proccess because i have not sent the real number to call
2 i have this just to test a call <extension name="Test Test"> <condition field="destination_number" expression="^(015555306078)$"> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/>
This syntax seems to be incorrect. You probably just want this: data="user/1008^$1" The "user" channel figures out the SIP contact string for you so that you don't have to do a crazy dialstring. Check out this page for more hints on how to construct a sofia dialstring: http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings -MC
Mike, As far as I know/remember, the ^$1 syntax is only valid with a sofia dialstring, which I gave to Octavio in my first reply. Do yo think this was changed to work also with user/ dialstring ? David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 02/09/2010 à 09:21, Michael Collins a écrit :
On Wed, Sep 1, 2010 at 11:33 PM, xduvox <xduvox@gmail.com> wrote:
Thanks David for your help now the quintum is registered, i use the user 1008 that is already created in FS
so i have done some test call 1. when i call 1008 quintum see the call but i got an error(503) NORMAL_TEMPORARY_FAILURE, quintum see the call but cant proccess because i have not sent the real number to call
2 i have this just to test a call <extension name="Test Test"> <condition field="destination_number" expression="^(015555306078)$"> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/> This syntax seems to be incorrect. You probably just want this: data="user/1008^$1"
The "user" channel figures out the SIP contact string for you so that you don't have to do a crazy dialstring. Check out this page for more hints on how to construct a sofia dialstring:
http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings
-MC _______________________________________________ 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 Mike thanks for your help i have read http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings but a could not find an example to use a use as gateway like this sofia/gateway/gwQuintum/$1 where i can send the destination_number i tried to do something like this <action application="bridge" data="user/internal/1008^$1"/> <action application="bridge" data="user/1008^$1"/> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/> <action application="bridge" data="user/1008@${domain_name}^$1"/> and i got the same error "cannot create outgoing channel of type [user] cause: [SUSCRIBER_ABSENT]" i tried this too <action application="bridge" data="user/internal/1008%${domain_name}/$1"/> like a gateway buy i got the same do you have any idea to use the user(quintum) like a gateway? thank in advance for your help -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
You should really read my replies. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 02/09/2010 à 21:28, xduvox a écrit :
Hello Mike thanks for your help i have read http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings but a could not find an example to use a use as gateway like this sofia/gateway/gwQuintum/$1 where i can send the destination_number i tried to do something like this <action application="bridge" data="user/internal/1008^$1"/> <action application="bridge" data="user/1008^$1"/> <action application="bridge" data="user/internal/1008%${domain_name}^ $1"/> <action application="bridge" data="user/1008@${domain_name}^$1"/>
and i got the same error "cannot create outgoing channel of type [user] cause: [SUSCRIBER_ABSENT]"
i tried this too <action application="bridge" data="user/internal/1008%${domain_name}/ $1"/> like a gateway buy i got the same do you have any idea to use the user(quintum) like a gateway?
thank in advance for your help
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.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
sorry David did i miss something, i am really new in this stuff i tried the way you tell me, sorry if i did not understand you, could you send me what you mind by write down and example! thanks 2010/9/2 David Ponzone [via freeswitch-users] < ml-node+5492569-1021998373-288894@n2.nabble.com<ml-node%2B5492569-1021998373-288894@n2.nabble.com>
You should really read my replies.
David Ponzone Direction Technique email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5492569&i=0> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <#12ad3fe4ec6c6d5a_> - www.ipeva-studio.com<#12ad3fe4ec6c6d5a_>
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 02/09/2010 à 21:28, xduvox a écrit :
Hello Mike thanks for your help i have read http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings but a could not find an example to use a use as gateway like this sofia/gateway/gwQuintum/$1 where i can send the destination_number i tried to do something like this <action application="bridge" data="user/internal/1008^$1"/> <action application="bridge" data="user/1008^$1"/> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/> <action application="bridge" data="user/1008@${domain_name}^$1"/>
and i got the same error "cannot create outgoing channel of type [user] cause: [SUSCRIBER_ABSENT]"
i tried this too <action application="bridge" data="user/internal/1008%${domain_name}/$1"/> like a gateway buy i got the same do you have any idea to use the user(quintum) like a gateway?
thank in advance for your help
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
FreeSWITCH-users mailing list [hidden email] <http://user/SendEmail.jtp?type=node&node=5492569&i=1> 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 [hidden email] <http://user/SendEmail.jtp?type=node&node=5492569&i=2> 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?by-user=t&by-user=t>
------------------------------ View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... To unsubscribe from how to register a gateway to freeswitch, click here<http://freeswitch-users.2379917.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=5487417&code=eGR1dm94QGdtYWlsLmNvbXw1NDg3NDE3fDYwNTI5MDIyOQ==>.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
So, quoting myself:
<action application="bridge" data="sofia/profile/user%domain^$1"/>
where $1 is of course the number you want to dial
^ allows to replace the dialed number in the INVITE you send to the client.
In your case: <action application="bridge" data="sofia/internal/1008%${domain}^$1"/> David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 02/09/2010 à 22:38, xduvox a écrit :
sorry David did i miss something, i am really new in this stuff i tried the way you tell me, sorry if i did not understand you, could you send me what you mind by write down and example! thanks
2010/9/2 David Ponzone [via freeswitch-users] <[hidden email]> You should really read my replies.
David Ponzone Direction Technique email: [hidden email] tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 02/09/2010 à 21:28, xduvox a écrit :
Hello Mike thanks for your help i have read http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings but a could not find an example to use a use as gateway like this sofia/gateway/gwQuintum/$1 where i can send the destination_number i tried to do something like this <action application="bridge" data="user/internal/1008^$1"/> <action application="bridge" data="user/1008^$1"/> <action application="bridge" data="user/internal/1008%$ {domain_name}^$1"/> <action application="bridge" data="user/1008@${domain_name}^$1"/>
and i got the same error "cannot create outgoing channel of type [user] cause: [SUSCRIBER_ABSENT]"
i tried this too <action application="bridge" data="user/internal/1008%$ {domain_name}/$1"/> like a gateway buy i got the same do you have any idea to use the user(quintum) like a gateway?
thank in advance for your help
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
FreeSWITCH-users mailing list [hidden email] 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 [hidden email] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... To unsubscribe from how to register a gateway to freeswitch, click here.
View this message in context: Re: how to register a gateway to freeswitch Sent from the freeswitch-users mailing list archive at Nabble.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
thanks David it works know i dont know why it did not work yesterday maybe was very late and i was tired, i swear i did it well yesterdad, but for sure i made a mistake! thanks for all your help David i hope i can help someone in the future! 2010/9/2 David Ponzone [via freeswitch-users] < ml-node+5493153-690406103-288894@n2.nabble.com<ml-node%2B5493153-690406103-288894@n2.nabble.com>
So, quoting myself:
<action application="bridge" data="sofia/profile/user%domain^$1"/>
where $1 is of course the number you want to dial
^ allows to replace the dialed number in the INVITE you send to the client.
In your case:
<action application="bridge" data="sofia/internal/1008%${domain}^$1"/>
David Ponzone Direction Technique email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5493153&i=0> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <#12ad49a0a46588f5_> - www.ipeva-studio.com<#12ad49a0a46588f5_>
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 02/09/2010 à 22:38, xduvox a écrit :
sorry David did i miss something, i am really new in this stuff i tried the way you tell me, sorry if i did not understand you, could you send me what you mind by write down and example! thanks
2010/9/2 David Ponzone [via freeswitch-users] <[hidden email]<http://user/SendEmail.jtp?type=node&node=5492755&i=0&by-user=t>
You should really read my replies.
David Ponzone Direction Technique email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5492569&i=0> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <#12ad49a0a46588f5_12ad3fe4ec6c6d5a_> - www.ipeva-studio.com <#12ad49a0a46588f5_12ad3fe4ec6c6d5a_>
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 02/09/2010 à 21:28, xduvox a écrit :
Hello Mike thanks for your help i have read http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings but a could not find an example to use a use as gateway like this sofia/gateway/gwQuintum/$1 where i can send the destination_number i tried to do something like this <action application="bridge" data="user/internal/1008^$1"/> <action application="bridge" data="user/1008^$1"/> <action application="bridge" data="user/internal/1008%${domain_name}^$1"/> <action application="bridge" data="user/1008@${domain_name}^$1"/>
and i got the same error "cannot create outgoing channel of type [user] cause: [SUSCRIBER_ABSENT]"
i tried this too <action application="bridge" data="user/internal/1008%${domain_name}/$1"/>
like a gateway buy i got the same do you have any idea to use the user(quintum) like a gateway?
thank in advance for your help
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492479.html<http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492479.html?by-user=t&by-user=t> Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
FreeSWITCH-users mailing list [hidden email] <http://user/SendEmail.jtp?type=node&node=5492569&i=1> 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?by-user=t&by-user=t>
_______________________________________________ FreeSWITCH-users mailing list [hidden email] <http://user/SendEmail.jtp?type=node&node=5492569&i=2> 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?by-user=t&by-user=t&by-user=t&by-user=t>
------------------------------ View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492569.html<http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492569.html?by-user=t&by-user=t> To unsubscribe from how to register a gateway to freeswitch, click here<http://freeswitch-users.2379917.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=5487417&code=eGR1dm94QGdtYWlsLmNvbXw1NDg3NDE3fDYwNTI5MDIyOQ==&by-user=t&by-user=t>.
------------------------------ View this message in context: Re: how to register a gateway to freeswitch<http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492755.html?by-user=t>
Sent from the freeswitch-users mailing list archive<http://freeswitch-users.2379917.n2.nabble.com/?by-user=t>at Nabble.com. _______________________________________________ FreeSWITCH-users mailing list [hidden email] <http://user/SendEmail.jtp?type=node&node=5493153&i=1> 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 [hidden email] <http://user/SendEmail.jtp?type=node&node=5493153&i=2> 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?by-user=t&by-user=t>
------------------------------ View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... To unsubscribe from how to register a gateway to freeswitch, click here<http://freeswitch-users.2379917.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=5487417&code=eGR1dm94QGdtYWlsLmNvbXw1NDg3NDE3fDYwNTI5MDIyOQ==>.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (4)
-
David Ponzone
-
Michael Collins
-
Octavio Duarte
-
xduvox