[Freeswitch-users] Getting Started Answering Calls

Brian West brian.west at mac.com
Thu Mar 27 19:16:50 PDT 2008


Brian,
	First off it looks like you have modified the default config and  
changed the context to default.  Bad idea!!!!!
This will allow it to bypass security and open you up for toll fraud  
if you roll this into production like that.

1. Change the context in iautoload_configs/iax.conf.xml to "public"
2. Open up dialplan/public.xml and add a route for the did:   
(NO_ROUTE_DESTINATION)


	Example:
       <extension name="iax_example">
         <condition field="destination_number"  
expression="^17807010953$">
           <action application="answer"/>
           <action application="echo"/>
         </condition>
       </extension>
	
More information can be find via #freeswitch on irc.freenode.net or at  
wiki.freeswitch.org,
You will find that the error messages usually tell the exact problem  
but as you said you're new. :P

Any reason you're using IAX?


Thanks,
Brian West
brian at freeswitch.org





On Mar 27, 2008, at 6:15 PM, Brian Tanner wrote:

> Hi there. I might end up being active in this list, so I'll introduce
> myself.  My name is Brian, I'm a complete newbie to telephony systems
> in general.  I'm sorry, I know that can be frustrating, I don't really
> know the jargon and I don't really understand how things work.  The
> good news is that I am good at figuring things out and I like to  
> fiddle.
>
> Let me see if I have my jargon right:
>
> I have a DID mapped to AIX with a service provider (DID WorldWide).  I
> have a cable modem at home, and my laptop (where FreeSwitch is) is the
> DMZ.
>
> I haven't touched the FreeSwitch config.
>
> When I call my local DID, FreeSwitch answers:
>
> freeswitch at bt-macBook.local> 2008-03-27 16:53:45 [NOTICE] mod_iax.c:
> 1011 mod_iax_runtime() Incoming call connected 17807010953,
> 7806692738, (null) 256/2097023
> 2008-03-27 16:53:45 [NOTICE] mod_iax.c:1019 mod_iax_runtime() New
> Inbound Channel (null)!
> 2008-03-27 16:53:45 [NOTICE] switch_channel.c:531
> switch_channel_set_name() New Channel IAX/17807010953-f30d
> [14617d63-9bb8-428b-8207-22a90693ae42]
> 2008-03-27 16:53:45 [INFO] mod_iax.c:399 iax_set_codec() Activate
> Codec PCMU/8000 20 ms
> 2008-03-27 16:53:45 [INFO] mod_dialplan_xml.c:223 dialplan_hunt()
> Processing ->17807010953 at default
> 2008-03-27 16:53:45 [NOTICE] switch_ivr.c:1001
> switch_ivr_session_transfer() Transfer IAX/17807010953-f30d to
> enum[17807010953 at default]
> 2008-03-27 16:53:46 [INFO] switch_core_state_machine.c:113
> switch_core_standard_on_ring() No Route, Aborting
> 2008-03-27 16:53:46 [NOTICE] switch_core_state_machine.c:114
> switch_core_standard_on_ring() Hangup IAX/17807010953-f30d [CS_RING]
> [NO_ROUTE_DESTINATION]
> 2008-03-27 16:53:46 [NOTICE] switch_core_session.c:748
> switch_core_session_thread() Session 1 (IAX/17807010953-f30d) Ended
> 2008-03-27 16:53:46 [NOTICE] switch_core_session.c:750
> switch_core_session_thread() Close Channel IAX/17807010953-f30d
> [CS_HANGUP]
> Bus error (core dumped)
>
>
> So, the crash sucks, and doesn't happen every single time.  I'm not
> tooo worried about that, because things are broken above.  It looks
> like the call was answered (and it even knows who called it -- cool).
> But, it looks like FreeSwitch doesn't know what to do with the call,
> and so it aborts and hangs up.
>
> I think this is expected behavior.
>
> I want to use FreeSwitch for a few things, but the first is to build
> an IVR and Voicemail system.
>
> Can someone point me to resources or give me some quick tips on how to
> start this?  There appear to be almost hundreds of config files, and
> it's all new to me, so I don't really know where to start, which files
> do what, etc, etc.  If someone could help me with minimal instructions
> on how to play a sound file based on some control-flow code I write,
> or some way to run a script, or whatever, I'd be very grateful.
>
> I'm just really overwhelmed and I don't know how to start.  Thanks in
> advance, very much!
>
> PS: If people help me get rolling, I'm happy to update wikis and/or
> write little tutorials as I go to save this hassle for future...
>
> --
> Brian Tanner
> Ph.D Student, University of Alberta
> brian at tannerpages.com
>
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list