Hello! I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="192.168.3.253"/> <!--/// send register to this proxy: *optional* same as proxy, if blank ///--> <!--<param name="register-proxy" value="mysbc.com"/>--> <!--/// expire in seconds: *optional* 3600, if blank ///--> <!--<param name="expire-seconds" value="60"/>--> <!--/// do not register ///--> <param name="register" value="false"/> <!-- which transport to use for register --> <!--<param name="register-transport" value="udp"/>--> <!--How many seconds before a retry when a failure or timeout occurs --> <!--<param name="retry-seconds" value="30"/>--> <!--Use the callerid of an inbound call in the from field on outbound calls vi a this gateway --> <!--<param name="caller-id-in-from" value="false"/>--> <!--extra sip params to send in the contact--> <!--<param name="contact-params" value="tport=tcp"/>--> <!--send an options ping every x seconds, failure will unregister and/or mark it down--> <!--<param name="ping" value="25"/>--> </gateway> </include> Gateway is present with running profile: 60 RUNNING (1) ipbx::test.tagnet.hn gateway sip:test@192.168.3.253 NOREG There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension> So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300) -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Hello, 12.04.2011, 08:55, "Boris Kovalenko" <boris@tagnet.ru>:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300)
Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- wbr, Serge
Hello! Hmm... I thinked GW is defined within profile not within context???
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300)
Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Hello, 12.04.2011, 13:57, "Boris Kovalenko" <boris@tagnet.ru>;:
Hello!
Hmm... I thinked GW is defined within profile not within context???
Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public. btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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 -- wbr, Serge
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->ext_translate_extsrc in context features But why the extension I configured does not work for it?
Hello,
12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru>;:
Hello!
Hmm... I thinked GW is defined within profile not within context??? Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public.
btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Because you're matching the destination_number "gw_test". The logs show you're dialing 1234 and then ext_translate_extsrc though, which don't match that condition. -Steve 2011/4/12 Boris Kovalenko <boris@tagnet.ru>
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->ext_translate_extsrc in context features
But why the extension I configured does not work for it?
Hello,
12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru>;:
Hello!
Hmm... I thinked GW is defined within profile not within context??? Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public.
btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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! But.... reading the docs: || <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <!--<param name="extension" value="cluecon"/>--> What this parameter means? I thinked that if extension is specified all incoming calls are placed to this extension. Isn't?
Because you're matching the destination_number "gw_test". The logs show you're dialing 1234 and then ext_translate_extsrc though, which don't match that condition.
-Steve
2011/4/12 Boris Kovalenko <boris@tagnet.ru <mailto:boris@tagnet.ru>>
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->ext_translate_extsrc in context features
But why the extension I configured does not work for it?
> Hello, > > 12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru <mailto:boris@tagnet.ru>>;: > >> Hello! >> >> Hmm... I thinked GW is defined within profile not within context??? > Pardon, of course you are right.. in general. > I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. > So if you defined your GW in internal profile it will search ext in default context, not public. > > btw, you can declare gw in directory and even in user record: > http://wiki.freeswitch.org/wiki/Clarification:gateways > >>> Hello, >>> >>> 12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru <mailto:boris@tagnet.ru>>;;: >>>> Hello! >>>> >>>> I have profile named ipbx with gateway defined: >>>> <include> >>>> <gateway name="test.tagnet.hn <http://test.tagnet.hn>"> >>>> <!--/// account username *required* ///--> >>>> <param name="username" value="test"/> >>>> <!--/// auth realm: *optional* same as gateway name, if blank ///--> >>>> <param name="realm" value="public"/> >>>> <!--/// username to use in from: *optional* same as username, if blank >>>> ///--> >>>> <param name="from-user" value="gw_test"/> >>>> <!--/// account password *required* ///--> >>>> <param name="password" value="2007"/> >>>> <!--/// extension for inbound calls: *optional* same as username, if >>>> blank /// >>>> --> >>>> <param name="extension" value="gw_test"/> >>>> There is an extension in context public: >>>> <extension name="gw_test"> >>>> <condition field="destination_number" expression="^gw_test$"> >>>> <action application="info" data="ALERT"/> >>>> <action application="hangup" data="NO_ROUTE_DESTINATION"/> >>>> </condition> >>>> </extension> >>>> >>>> So, my inbound calls from this gateway should go to extension gw_test? >>>> But they don't... >>>> What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 >>>> 2011-01-20 22-43-50 -0300) >>> Is this GW defined in public context? >>> Hint: realm != context! >>> Pls, look at example 'incoming.xml' in public profile in default config set >> -- >> С уважением, >> Борис Коваленко >> ЗАО "Тагнет" >> (3435) 494991 >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
This parameter specifies the value FreeSWITCH is going to use for the username portion of the Contact URI when registering to your gateway: extension = cluecon FreeSWITCH sends a REGISTER packet with a contact address like this: Contact: cluecon@your.ip.address With a "standard" setup your provider is supposed to send calls to the value provided in the Contact address with INVITEs to cluecon@your.ip.address. However, many providers (to implement DID services) ignore the username portion and just use the host portion (IP address) so what you end up with is an INVITE to 8005551212@your.ip.address. If I saw a SIP trace I'd know for sure but that's probably what's going on. On Tue, Apr 12, 2011 at 9:38 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
But.... reading the docs:
<!--/// extension for inbound calls: *optional* same as username, if blank ///--> <!--<param name="extension" value="cluecon"/>-->
What this parameter means? I thinked that if extension is specified all incoming calls are placed to this extension. Isn't?
Because you're matching the destination_number "gw_test". The logs show you're dialing 1234 and then ext_translate_extsrc though, which don't match that condition.
-Steve
2011/4/12 Boris Kovalenko <boris@tagnet.ru>
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->ext_translate_extsrc in context features
But why the extension I configured does not work for it?
Hello,
12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru>;:
Hello!
Hmm... I thinked GW is defined within profile not within context??? Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public.
btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;:
Hello!
I have profile named ipbx with gateway defined: <include> <gateway name="test.tagnet.hn"> <!--/// account username *required* ///--> <param name="username" value="test"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="public"/> <!--/// username to use in from: *optional* same as username, if blank ///--> <param name="from-user" value="gw_test"/> <!--/// account password *required* ///--> <param name="password" value="2007"/> <!--/// extension for inbound calls: *optional* same as username, if blank /// --> <param name="extension" value="gw_test"/> There is an extension in context public: <extension name="gw_test"> <condition field="destination_number" expression="^gw_test$"> <action application="info" data="ALERT"/> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension>
So, my inbound calls from this gateway should go to extension gw_test? But they don't... What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- Kristian Kielhofner
Hello! Ough... my misundestanding. I thinked this is extension in the dialplan where incoming calls are placed.
This parameter specifies the value FreeSWITCH is going to use for the username portion of the Contact URI when registering to your gateway:
extension = cluecon
FreeSWITCH sends a REGISTER packet with a contact address like this:
Contact: cluecon@your.ip.address
With a "standard" setup your provider is supposed to send calls to the value provided in the Contact address with INVITEs to cluecon@your.ip.address. However, many providers (to implement DID services) ignore the username portion and just use the host portion (IP address) so what you end up with is an INVITE to 8005551212@your.ip.address.
If I saw a SIP trace I'd know for sure but that's probably what's going on.
On Tue, Apr 12, 2011 at 9:38 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
But.... reading the docs:
<!--/// extension for inbound calls: *optional* same as username, if blank ///--> <!--<param name="extension" value="cluecon"/>-->
What this parameter means? I thinked that if extension is specified all incoming calls are placed to this extension. Isn't?
Because you're matching the destination_number "gw_test". The logs show you're dialing 1234 and then ext_translate_extsrc though, which don't match that condition.
-Steve
2011/4/12 Boris Kovalenko<boris@tagnet.ru>
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw<12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw<12>->ext_translate_extsrc in context features
But why the extension I configured does not work for it?
Hello,
12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru>;:
Hello!
Hmm... I thinked GW is defined within profile not within context??? Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public.
btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;: > Hello! > > I have profile named ipbx with gateway defined: > <include> > <gateway name="test.tagnet.hn"> > <!--/// account username *required* ///--> > <param name="username" value="test"/> > <!--/// auth realm: *optional* same as gateway name, if blank > ///--> > <param name="realm" value="public"/> > <!--/// username to use in from: *optional* same as username, if > blank > ///--> > <param name="from-user" value="gw_test"/> > <!--/// account password *required* ///--> > <param name="password" value="2007"/> > <!--/// extension for inbound calls: *optional* same as username, > if > blank /// > --> > <param name="extension" value="gw_test"/> > There is an extension in context public: > <extension name="gw_test"> > <condition field="destination_number" expression="^gw_test$"> > <action application="info" data="ALERT"/> > <action application="hangup" data="NO_ROUTE_DESTINATION"/> > </condition> > </extension> > > So, my inbound calls from this gateway should go to extension > gw_test? > But they don't... > What is wrong with my config? FreeSWITCH Version 1.0.head > (git-1c95ad9 > 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Hi Wow, how interesting! I'm thought the same way as Boris although didn't understand why do it this way and not as seen in examples.. Thanks a lot for explanation. 12.04.2011, 17:47, "Kristian Kielhofner" <kris@kriskinc.com>;:
This parameter specifies the value FreeSWITCH is going to use for the username portion of the Contact URI when registering to your gateway:
extension = cluecon
FreeSWITCH sends a REGISTER packet with a contact address like this:
Contact: cluecon@your.ip.address
With a "standard" setup your provider is supposed to send calls to the value provided in the Contact address with INVITEs to cluecon@your.ip.address. However, many providers (to implement DID services) ignore the username portion and just use the host portion (IP address) so what you end up with is an INVITE to 8005551212@your.ip.address.
If I saw a SIP trace I'd know for sure but that's probably what's going on.
On Tue, Apr 12, 2011 at 9:38 AM, Boris Kovalenko <boris@tagnet.ru>;; wrote:
Hello!
But.... reading the docs:
<!--/// extension for inbound calls: *optional* same as username, if blank ///--> <!--<param name="extension" value="cluecon"/>-->
What this parameter means? I thinked that if extension is specified all incoming calls are placed to this extension. Isn't?
Because you're matching the destination_number "gw_test". The logs show you're dialing 1234 and then ext_translate_extsrc though, which don't match that condition.
-Steve
2011/4/12 Boris Kovalenko <boris@tagnet.ru>;;
Of course... my gw is looking in public context: 2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->1234 in context public 2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331 Processing test gw <12>->ext_translate_extsrc in context features
But why the extension I configured does not work for it?
Hello,
12.04.2011, 13:57, "Boris Kovalenko"<boris@tagnet.ru>;;;:
Hello!
Hmm... I thinked GW is defined within profile not within context??? Pardon, of course you are right.. in general. I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere. So if you defined your GW in internal profile it will search ext in default context, not public.
btw, you can declare gw in directory and even in user record: http://wiki.freeswitch.org/wiki/Clarification:gateways
Hello,
12.04.2011, 08:55, "Boris Kovalenko"<boris@tagnet.ru>;;;;: > Hello! > > I have profile named ipbx with gateway defined: > <include> > <gateway name="test.tagnet.hn"> > <!--/// account username *required* ///--> > <param name="username" value="test"/> > <!--/// auth realm: *optional* same as gateway name, if blank > ///--> > <param name="realm" value="public"/> > <!--/// username to use in from: *optional* same as username, if > blank > ///--> > <param name="from-user" value="gw_test"/> > <!--/// account password *required* ///--> > <param name="password" value="2007"/> > <!--/// extension for inbound calls: *optional* same as username, > if > blank /// > --> > <param name="extension" value="gw_test"/> > There is an extension in context public: > <extension name="gw_test"> > <condition field="destination_number" expression="^gw_test$"> > <action application="info" data="ALERT"/> > <action application="hangup" data="NO_ROUTE_DESTINATION"/> > </condition> > </extension> > > So, my inbound calls from this gateway should go to extension > gw_test? > But they don't... > What is wrong with my config? FreeSWITCH Version 1.0.head > (git-1c95ad9 > 2011-01-20 22-43-50 -0300) Is this GW defined in public context? Hint: realm != context! Pls, look at example 'incoming.xml' in public profile in default config set -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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 -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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 -- Kristian Kielhofner
_______________________________________________ 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 -- wbr, Serge
participants (4)
-
Boris Kovalenko
-
Kristian Kielhofner
-
Serge S. Yuriev
-
Steven Ayre