Quantcast

how to register a gateway to freeswitch

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to register a gateway to freeswitch

xduvox
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
[hidden email]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

David Ponzone
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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
<a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr  -   <a href="BLOCKED::http://www.ipeva-studio.com/">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
[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

xduvox
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!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

mercutioviz


On Wed, Sep 1, 2010 at 11:33 PM, xduvox <[hidden email]> 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
[hidden email]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

David Ponzone
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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
<a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr  -   <a href="BLOCKED::http://www.ipeva-studio.com/">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 <[hidden email]> 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
[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

xduvox
In reply to this post by mercutioviz
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

David Ponzone
You should really read my replies.

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
<a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr  -   <a href="BLOCKED::http://www.ipeva-studio.com/">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-freeswitch-tp5487417p5492479.html
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

xduvox
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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

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
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________

View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492569.html
To unsubscribe from how to register a gateway to freeswitch, click here.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

David Ponzone
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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
<a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr  -   <a href="BLOCKED::http://www.ipeva-studio.com/">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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

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
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________

View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492569.html
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
[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to register a gateway to freeswitch

xduvox
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] <[hidden email]>
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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

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
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

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
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________

View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5492569.html
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

View message @ http://freeswitch-users.2379917.n2.nabble.com/how-to-register-a-gateway-to-freeswitch-tp5487417p5493153.html
To unsubscribe from how to register a gateway to freeswitch, click here.


Loading...