MaxSok / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

parse_dial_string: Can't determine destination in chan_dongle #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
In extensions.conf add this
[dongle-outgoing]
exten => 1,1,Dial(${dial_string},${timeout})
2.
In my asterisk java code
factory = new ManagerConnectionFactory("127.0.0.1", "myloginusername", "mypwd");
            outgoingCallManager = factory.createManagerConnection();
            outgoingCallManager.login();
            originateAction = new OriginateAction();
            originateAction.setChannel("Dongle/dongle0");
            originateAction.setContext("dongle-outgoing");
            originateAction.setExten("1");
            originateAction.setAsync(true);
            originateAction.setPriority(new Integer(1));
            originateAction.setVariable("dial_string","Dongle/dongle0/1234567890");
            originateAction.setTimeout(new Integer(30));
//          originateAction.setVariable("customernum", "+911234567890") ; // replace 
1234567890 with correct number
            response = outgoingCallManager.sendAction(originateAction, 30000) ;
3.

What is the expected output? What do you see instead?
I expect that the call will go through and I will be able to collect dtmf from 
the customer.

What I see is
  == Manager 'jsiddharth' logged on from 127.0.0.1
[Jun 19 19:33:13] WARNING[26401]: channel.c:44 parse_dial_string: Can't 
determine destination in chan_dongle
[Jun 19 19:33:13] NOTICE[26401]: channel.c:5429 __ast_request_and_dial: Unable 
to request channel Dongle/dongle0
  == Manager 'jsiddharth' logged off from 127.0.0.1

What version of the product are you using? On what operating system?
AsteriskNOW 1.8 on Ubuntu 12

Please provide any additional information below.

Original issue reported on code.google.com by jsiddha...@mcruiseon.com on 19 Jun 2013 at 2:07

GoogleCodeExporter commented 9 years ago
I get something similar. Incoming calls and texts working fine. Outgoing calls 
get unobtainable. Get result:-

Connected to Asterisk 11.3.0 currently running on raspbx (pid = 3068)
[2013-06-26 11:28:55] WARNING[8801][C-00000599]: channel.c:71 
parse_dial_string: Empty destination in chan_dongle
[2013-06-26 11:28:55] WARNING[8801][C-00000599]: app_dial.c:2437 
dial_exec_full: Unable to create channel of type 'dongle' (cause 88 - 
Incompatible destination)

Original comment by techchi...@gmail.com on 26 Jun 2013 at 10:31

GoogleCodeExporter commented 9 years ago
Read asterisk-java documentation carefully.

Also look to channel originate CLI command
.setChannel() must contain all info for dialing

also may be your
.setContext("dongle-outgoing");
.setExten("1");
.setPriority(new Integer(1));

also wrong, because will execute when call will be answered!
I.e. Application or dialplan create local leg of call.

I see you can call again instread.

So, problem in your understanding of asterisk-java.

Original comment by bg_...@mail.ru on 30 Jul 2013 at 7:21