halp! newb question on setting up providers..
Hi All, getting freeswitch up and running - heaps easier than asterisk.... but.. I can't seem to work out what and where to put things for configuring my provider.. there seems to be a number of ways to do it.. currently I have it set in my vars.xml under default_provider.. <X-PRE-PROCESS cmd="set" data="default_provider=sip.pennytel.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=6189xxxxxx"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=xxxxxx"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain= sip.pennytel.com"/> <!-- true or false --> <X-PRE-PROCESS cmd="set" data="default_provider_register=true"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=sofia/internal/ sip:102@192.168.1.22:5060"/> when I try and ring my mobile I get.. 2011-06-29 17:39:42.269994 [WARNING] sofia_reg.c:1329 SIP auth challenge (INVITE) on sofia profile 'internal' for [041xxxxxxx@192.168.1.76] from ip 192.168.1.22 2011-06-29 17:39:42.610032 [NOTICE] switch_channel.c:890 New Channel sofia/internal/102@192.168.1.76 [cda831fb-e8f5-4c64-936a-1562691f15cf] 2011-06-29 17:39:42.657134 [INFO] mod_dialplan_xml.c:336 Processing Kitchen <102>->041xxxxxxx in context default 2011-06-29 17:39:42.745992 [ERR] mod_sofia.c:4141 Invalid Gateway 2011-06-29 17:39:42.745992 [NOTICE] mod_sofia.c:4508 Close Channel N/A [CS_NEW] 2011-06-29 17:39:42.745992 [NOTICE] switch_ivr_originate.c:2443 Cannot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT] 2011-06-29 17:39:42.745992 [INFO] mod_dptools.c:2680 Originate Failed. Cause: INVALID_NUMBER_FORMAT 2011-06-29 17:39:42.745992 [NOTICE] mod_dptools.c:2799 Hangup sofia/internal/102@192.168.1.76 [CS_EXECUTE] [INVALID_NUMBER_FORMAT] 2011-06-29 17:39:42.745992 [NOTICE] switch_core_session.c:1308 Session 11 ( sofia/internal/102@192.168.1.76) Ended 2011-06-29 17:39:42.745992 [NOTICE] switch_core_session.c:1310 Close Channel sofia/internal/102@192.168.1.76 [CS_DESTROY] the wiki doesn't make it very clear on wher to put things... :( Thanks in advance.. Bret
ok things are working better since I found the packt site.. http://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telep... much easier to understand than the wiki.... Anyway now got a strange one.. incoming calls from pennytel fail with the following.. 2011-06-29 21:15:36.048108 [NOTICE] switch_channel.c:890 New Channel sofia/external/041xxxxxxx@202.85.243.105 [616f79a7-763d-435b-9038-527483621a38] 2011-06-29 21:15:36.048108 [INFO] mod_dialplan_xml.c:336 Processing 041xxxxxxx <041xxxxxxx>->618xxxxxxx in context public 2011-06-29 21:15:36.048108 [ERR] switch_core_session.c:413 Could not locate channel type 101 XML default 2011-06-29 21:15:36.048108 [NOTICE] switch_ivr_originate.c:2443 Cannot create outgoing channel of type [101 XML default] cause: [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [INFO] mod_dptools.c:2680 Originate Failed. Cause: CHAN_NOT_IMPLEMENTED 2011-06-29 21:15:36.048108 [NOTICE] mod_dptools.c:2799 Hangup sofia/external/041xxxxxxx@202.85.243.105 [CS_EXECUTE] [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1308 Session 1 (sofia/external/041xxxxxxx@202.85.243.105) Ended 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1310 Close Channel sofia/external/041xxxxxxx@202.85.243.105 [CS_DESTROY] The relevant dialplan in usr/local/freeswitch/conf/dialplan/public <include> <extension name="public_did"> <condition field="destination_number" expression="^(618xxxxxxx )$"> <action application="set" data="domain_name=$${domain}"/> <action application="bridge" data="101 XML default"/> </condition> </extension> </include> It looks pretty textbook to me, but for some reason it can't create a channel to that extension.. I can call that extension internally no problems however.. Thanks! Bret
hi bret, change: <action application="bridge" data="101 XML default"/> to: <action application="transfer" data="101 XML default"/> -nandy On Wed, Jun 29, 2011 at 9:25 PM, Bret Watson <lists@ticm.com> wrote:
ok things are working better since I found the packt site..
http://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telep... much easier to understand than the wiki....
Anyway now got a strange one..
incoming calls from pennytel fail with the following..
2011-06-29 21:15:36.048108 [NOTICE] switch_channel.c:890 New Channel sofia/external/041xxxxxxx@202.85.243.105[616f79a7-763d-435b-9038-527483621a38] 2011-06-29 21:15:36.048108 [INFO] mod_dialplan_xml.c:336 Processing 041xxxxxxx <041xxxxxxx>->618xxxxxxx in context public 2011-06-29 21:15:36.048108 [ERR] switch_core_session.c:413 Could not locate channel type 101 XML default 2011-06-29 21:15:36.048108 [NOTICE] switch_ivr_originate.c:2443 Cannot create outgoing channel of type [101 XML default] cause: [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [INFO] mod_dptools.c:2680 Originate Failed. Cause: CHAN_NOT_IMPLEMENTED 2011-06-29 21:15:36.048108 [NOTICE] mod_dptools.c:2799 Hangup sofia/external/041xxxxxxx@202.85.243.105 [CS_EXECUTE] [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1308 Session 1 (sofia/external/041xxxxxxx@202.85.243.105) Ended 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1310 Close Channel sofia/external/041xxxxxxx@202.85.243.105 [CS_DESTROY]
The relevant dialplan in usr/local/freeswitch/conf/dialplan/public
<include> <extension name="public_did"> <condition field="destination_number" expression="^(618xxxxxxx )$"> <action application="set" data="domain_name=$${domain}"/> <action application="bridge" data="101 XML default"/> </condition> </extension> </include>
It looks pretty textbook to me, but for some reason it can't create a channel to that extension.. I can call that extension internally no problems however..
Thanks!
Bret
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
works! :) thanks.. such a small tweak too.. At 06:38 AM 30/06/2011, Nandy Dagondon wrote:
hi bret,
change: Â Â Â <action application="bridge" data="101 XML default"/> to: Â Â Â Â Â Â Â <action application="transfer" data="101 XML default"/>
-nandy
On Wed, Jun 29, 2011 at 9:25 PM, Bret Watson <<mailto:lists@ticm.com>lists@ticm.com> wrote: ok things are working better since I found the packt site.. <http://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telephony-systems/book>http://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telephony-systems/book much easier to understand than the wiki....
Anyway now got a strange one..
incoming calls from pennytel fail with the following..
2011-06-29 21:15:36.048108 [NOTICE] switch_channel.c:890 New Channel sofia/external/<mailto:041xxxxxxx@202.85.243.105>041xxxxxxx@202.85.243.105 [616f79a7-763d-435b-9038-527483621a38] 2011-06-29 21:15:36.048108 [INFO] mod_dialplan_xml.c:336 Processing 041xxxxxxx <041xxxxxxx>->618xxxxxxx in context public 2011-06-29 21:15:36.048108 [ERR] switch_core_session.c:413 Could not locate channel type 101 XML default 2011-06-29 21:15:36.048108 [NOTICE] switch_ivr_originate.c:2443 Cannot create outgoing channel of type [101 XML default] cause: [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [INFO] mod_dptools.c:2680 Originate Failed. Â Cause: CHAN_NOT_IMPLEMENTED 2011-06-29 21:15:36.048108 [NOTICE] mod_dptools.c:2799 Hangup sofia/external/<mailto:041xxxxxxx@202.85.243.105>041xxxxxxx@202.85.243.105 [CS_EXECUTE] [CHAN_NOT_IMPLEMENTED] 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1308 Session 1 (sofia/external/<mailto:041xxxxxxx@202.85.243.105>041xxxxxxx@202.85.243.105) Ended 2011-06-29 21:15:36.048108 [NOTICE] switch_core_session.c:1310 Close Channel sofia/external/<mailto:041xxxxxxx@202.85.243.105>041xxxxxxx@202.85.243.105 [CS_DESTROY]
The relevant dialplan  in usr/local/freeswitch/conf/dialplan/public
<include> Â <extension name="public_did"> Â Â <condition field="destination_number" expression="^(618xxxxxxx )$"> Â Â Â <action application="set" data="domain_name=$${domain}"/> Â Â Â <action application="bridge" data="101 XML default"/> Â Â </condition> Â </extension> </include>
It looks pretty textbook to me, but for some reason it can't create a channel to that extension.. I can call that extension internally no problems however..
Thanks!
Bret
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago <http://www.cluecon.com>http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list <mailto:FreeSWITCH-users@lists.freeswitch.org>FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users>http://lists.freeswitch.org/mailman/options/freeswitch-users <http://www.freeswitch.org>http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
participants (3)
-
Bret Watson
-
Bret-lists Watson
-
Nandy Dagondon