[Freeswitch-users] Gateway Registration Issues
Christian Hil
c.j.hilden at gmail.com
Sun Dec 15 22:51:24 MSK 2013
This should be a reply to an old thread from 2010 which contains some
missleading information and can still be found by google.
It should hopefully end up in the right place. If not please excuse this
message.
Summary of the old thread:
Some voip carriers require the contact field to be in a specific format.
E.g.: <userID>@<ip>.
Normaly freeswitch sets the contact field to "gw <gw-name>@<ip>".
To override this behaviour the parameter /<param
name="extension-in-contact" value="true"/>/ has to be set. (Note the
dash (-) instead of deepdash (_) which was postet in the old reply!)
With this switch set to true the generated contact field is
"<extension>@<ip>"
Hope this helps some ppl w/o wasting others to much time
Christian
On Fri, May 21, 2010 at 12:35 PM, David Ponzone <david.ponzone at
gmail.com
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>wrote:
>/ You restarted the gateway ?
/>/
/>/ sofia profile external killgw mydomain
/>/ sofia profile external rescan reloadxml
/>/
/>/ David Ponzone Direction Technique
/>/ email:david.ponzone at ipeva.fr
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
/>/ 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 21/05/2010 à 07:00, ram a écrit :
/>/
/>/
/>/
/>/
/>/ thats good suggstion
/>/
/>/ iam working on same problem
/>/
/>/ <gateway name="mydomain">
/>/ <param name="username" value="2000"/>
/>/ <param name="auth-username" value="2000"/>
/>/ <param name="password" value="XXXX"/>
/>/ <param name="from-user" value="2000"/>
/>/ <param name="from-domain" value="sip5.domain.com"/>
/>/ <param name="proxy" value="sip5.domain.com"/>
/>/ <param name="register-proxy" value="sip5.domain.com"/>
/>/ <param name="outbound-proxy" value="sip5.domain.com"/>
/>/ <param name="expire-seconds" value="800"/>
/>/ <param name="register" value="true"/>
/>/ <param name="register-transport" value="udp"/>
/>/ <param name="retry-seconds" value="60"/>
/>/ <param name="ping" value="6000"/>
/>/ <param name="context" value="public"/>
/>/ <param name="caller-id-in-from" value="true"/>
/>/ <param name="extension_in_contact" value="true"/>
/>/ </gateway>
/>/ </include>
/>/
/>/
/>/ and My gateway side still show like below
/>/
/>/
/>/
/>/ AOR::2000 at sip5.otherdomain.com
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
/>/ Contact::
/>/ sip:gw+mydomain at x.x.x.x
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>:5080;transport=udp;gw=mydomain
Q=
/>/ Expires:: 794
/>/ Callid:: 30b6aa56-6491-11df-86f8-797747db92ac
/>/ Cseq:: 131089695
/>/ User-agent::
/>/ FreeSWITCH-mod_sofia/1.0.head-svn-17503
/>/ State:: CS_NEW
/>/ Flags:: 0
/>/ Cflag:: 0
/>/ Socket:: udp:x.x.x.x:5060
/>/ Methods:: 5631
/>/
/>/
/>/ On Thu, May 13, 2010 at 6:28 PM, David Ponzone <david.ponzone at
gmail.com
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>wrote:
/>/
/>>/ Aloysius,,
/>>/
/>>/ That is an old-skool carrier.
/>>/ You have to add this line to your gateway params:
/>>/
/>>/ <param name="extension-in-contact" value="true"/>
/>>/
/>>/
/>>/ David Ponzone Direction Technique
/>>/ email:david.ponzone at ipeva.fr
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
/>>/ 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 13/05/2010 à 14:46, Aloysius Lloyd a écrit :
/>>/
/>>/ Hi All,
/>>/
/>>/ I am trying to connect IRISTEL ( CLEC ) in Canada and FreeSWITCH.
I have
/>>/ the following gateway configuration
/>>/
/>>/ <include>
/>>/ <gateway name="wwc_test">
/>>/ <param name="auth-username" value="username"/>
/>>/ <param name="username" value="14161231234" />
/>>/ <param name="password" value="password" />
/>>/ <param name="proxy" value="sbc1.iristel.net" />
/>>/ <param name="realm" value="iristel.net" />
/>>/ <param name="expire-seconds" value="120"/>
/>>/ <param name="register" value="true"/>
/>>/ <param name="retry-seconds" value="30"/>
/>>/ <param name="ping" value="25"/>
/>>/ </gateway>
/>>/ </include>
/>>/
/>>/
/>>/ The above configuration is not working. I have the following error
in cli
/>>/ Error.
/>>/
/>>/ *2010-05-13 08:34:15.987465 [ERR] sofia_reg.c:1501 14161231234
/>>/ Registration Failed with status Conflict [409]. failure #1*
/>>/
/>>/ ====
/>>/
/>>/ Also carrier saying there is conflict in the contact field.Here is how
/>>/ they receive now.
/>>/
/>>/ *Contact: <
/>>/ sip:gw+test_iristel at 10.20.30.1
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>:5080;transport=udp;gw=test_iristel>.*
/>>/
/>>/ But the contact field should be like below
/>>/
/>>/ Contact: <14161231234 at 10.20.30.1
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>:5080;
/>>/
/>>/ Any suggestions?
/>>/
/>>/ Thanks in advance.
/>>/
/>>/ Lloyd/
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list