[Freeswitch-users] Problems making a receiveing calls with mod_jingling

Rob Hutton justlikeef at gmail.com
Wed Oct 13 09:44:40 PDT 2010


I am trying to get mod_dingaling working, and I am sure I am doing something stupid, but I can't figure out what it is...

Relevant parts of call log:

Dialplan: sofia/sipinterface_1/1001 at 192.168.1.200 Regex (PASS) [dingaling_1_pattern_1] destination_number(94045550100) =~ /^91{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$/ break=on-false                                                                                                                                    
Dialplan: sofia/sipinterface_1/1001 at 192.168.1.200 Action set(prepend=1)                                                                                    
Dialplan: sofia/sipinterface_1/1001 at 192.168.1.200 Action set(hangup_after_bridge=true)                                                                     
Dialplan: sofia/sipinterface_1/1001 at 192.168.1.200 Action bridge(dingaling/GoogleTalk/+${prepend}4045550100 at voice.google.com)                               
2010-10-13 12:15:41.427591 [DEBUG] switch_core_state_machine.c:119 (sofia/sipinterface_1/1001 at 192.168.1.200) State Change CS_ROUTING -> CS_EXECUTE         
...
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 hash(insert/192.168.1.200-spymap/1001/87e31e76-56ff-47f2-b210-a316c3191a44)                                
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 hash(insert/192.168.1.200-last_dial/1001/94045550100)                                                      
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 hash(insert/192.168.1.200-last_dial/global/87e31e76-56ff-47f2-b210-a316c3191a44)                           
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 set(RFC2822_DATE=Wed, 13 Oct 2010 12:15:41 -0400)                                                          
2010-10-13 12:15:41.431854 [DEBUG] mod_dptools.c:1024 sofia/sipinterface_1/1001 at 192.168.1.200 SET [RFC2822_DATE]=[Wed, 13 Oct 2010 12:15:41 -0400]         
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 set(prepend=1)                                                                                             
2010-10-13 12:15:41.431854 [DEBUG] mod_dptools.c:1024 sofia/sipinterface_1/1001 at 192.168.1.200 SET [prepend]=[1]                                            
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 set(hangup_after_bridge=true)                                                                              
2010-10-13 12:15:41.431854 [DEBUG] mod_dptools.c:1024 sofia/sipinterface_1/1001 at 192.168.1.200 SET [hangup_after_bridge]=[true]                             
EXECUTE sofia/sipinterface_1/1001 at 192.168.1.200 bridge(dingaling/GoogleTalk/+14045550100 at voice.google.com)                                                 
2010-10-13 12:15:41.432855 [DEBUG] mod_dingaling.c:1727 Unknown Profile!                                                                                   
2010-10-13 12:15:41.432855 [DEBUG] mod_dingaling.c:704 Terminate called from line 1728 state=CS_NEW                                                        
2010-10-13 12:15:41.432855 [NOTICE] mod_dingaling.c:715 Close Channel N/A [CS_NEW]                                                                         
2010-10-13 12:15:41.432855 [DEBUG] switch_core_state_machine.c:430 () Running State Change CS_DESTROY                                                      
2010-10-13 12:15:41.432855 [DEBUG] switch_core_state_machine.c:440 (N/A) State DESTROY                                                                     
2010-10-13 12:15:41.432855 [DEBUG] switch_core_state_machine.c:440 (N/A) State DESTROY going to sleep                                                      
2010-10-13 12:15:41.432855 [ERR] switch_ivr_originate.c:2605 Cannot create outgoing channel of type [dingaling] cause: [DESTINATION_OUT_OF_ORDER]          
2010-10-13 12:15:41.432855 [DEBUG] switch_ivr_originate.c:3413 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]                            
2010-10-13 12:15:41.432855 [INFO] mod_dptools.c:2575 Originate Failed.  Cause: DESTINATION_OUT_OF_ORDER                                                    
2010-10-13 12:15:41.432855 [DEBUG] switch_channel.c:2445 (sofia/sipinterface_1/1001 at 192.168.1.200) Callstate Change RINGING -> HANGUP                      
2010-10-13 12:15:41.432855 [NOTICE] mod_dptools.c:2638 Hangup sofia/sipinterface_1/1001 at 192.168.1.200 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER]              
2010-10-13 12:15:41.432855 [DEBUG] switch_channel.c:2461 Send signal sofia/sipinterface_1/1001 at 192.168.1.200 [KILL]                                        

I think the interesting message is "Unknown Profile!"

Here is the dialplan that is being matched:

    <extension name="dingaling_1_pattern_1" continue="true">
      <condition field="destination_number" expression="^91{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$" bluebox="pattern_1">
        <action application="set" bluebox="prepend" data="prepend=1"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="bridge" data="dingaling/GoogleTalk/+${prepend}$1 at voice.google.com"/>
      </condition>
    </extension>

Here is the profile:

  <profile name="dingaling_1">
    <param name="name" value="GoogleTalk"/>
    <param name="login" value="justlikeef at gmail.com/gtalk"/>
    <param name="password" value="!Cl0r0x1.."/>
    <param name="server" value="talk.google.com"/>
    <param name="dialplan" value="XML"/>
    <param name="message" value=""/>
    <param name="rtp-ip" value="$${bind_server_ip}"/>
    <param name="auto-login" value="true"/>
    <param name="auto-reply" value=""/>
    <param name="sasl" value="plain"/> 
    <param name="tls" value="true"/>   
    <param name="use-rtp-timer" value="true"/>
    <param name="vad" value="both"/>
    <param name="candidate-acl" value="wan.auto"/>
    <param name="local-network-acl" value="localnet.auto"/>
    <param name="context" value="context_1"/>
    <param name="exten" value="1001"/>
  </profile>

Complete config and log in pastebin...

-- 
Thanks,
Rob



More information about the FreeSWITCH-users mailing list