From: Kurtis H. <khe...@cs...> - 2014-06-13 23:39:39
|
The dialplan looks fine, but it's not making it there. There are no regex checks. What else is in the log? On Thu, Jun 12, 2014 at 11:54 AM, Talal Ahmad <mai...@gm...> wrote: > I am trying to get freeswitch to make local calls. The chatplan is up and > running but there seems to be some problem in the dialplan. > > Currently my dialplan contains the following in the public context: > > <extension name="local_call"> > > <!-- openbts_db_loc set in vars.xml --> > <condition field='${python(VBTS_DB_Get name|callerid|${destination_number})}' expression="IMSI\d{15}"/> > <condition field='${python(VBTS_DB_Get callerid|name|${username})}' expression="\d{7,10}"> > <action application="set" data='target=${python(VBTS_DB_Get name|callerid|${destination_number})}' /> > <action application="set" data='port=${python(VBTS_DB_Get port|callerid|${destination_number})}' /> > <action application="set" data='host=${python(VBTS_DB_Get ipaddr|callerid|${destination_number})}' /> > <action application="set" data='effective_caller_id_number=${python(VBTS_DB_Get callerid|name|${username})}'/> > <action application="bridge" data="sofia/internal/${target}@${host}:${port}"/> > </condition> > > </extension> > > > > But when I try to have a call between two registered numbers, I see this > in freeswitch: > 2014-06-12 14:48:04.097441 [NOTICE] switch_channel.c:1054 New Channel > sofia/internal/IMSI410018798205395@127.0.0.1 > [1d9e0689-2d86-4344-9ee5-2bbbd07babfa] > 2014-06-12 14:48:14.097430 [WARNING] switch_core_state_machine.c:567 > 1d9e0689-2d86-4344-9ee5-2bbbd07babfa sofia/internal/ > IMSI410018798205395@127.0.0.1 Abandoned > 2014-06-12 14:48:14.097430 [NOTICE] switch_core_state_machine.c:570 Hangup > sofia/internal/IMSI410018798205395@127.0.0.1 [CS_NEW] [WRONG_CALL_STATE] > 2014-06-12 14:48:14.097430 [NOTICE] switch_core_session.c:1622 Session 1 > (sofia/internal/IMSI410018798205395@127.0.0.1) Ended > 2014-06-12 14:48:14.097430 [NOTICE] switch_core_session.c:1626 Close > Channel sofia/internal/IMSI410018798205395@127.0.0.1 [CS_DESTROY] > > > > Do I need to add something else to the dialplan? > -- > Talal > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Openbts-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbts-discuss > > |