auto-dial out

sunware

Neuer User
Mitglied seit
6 Jul 2006
Beiträge
20
Punkte für Reaktionen
0
Punkte
0
ich möchte von einem externen Programm das wählen initiieren. Laut voip-info.org geht das mit einem call file.

Folgende Datei wird erstellt und an der Asterisk in das outgoing per mv... verschoben.

Code:
Channel: SIP/26
MaxRetries: 1
WaitTime: 30
Context: iaxout
Extension: 007531996770
Priority: 1

Asterisk ruft dann SIP/26 an, Hörer wird abgenommen, aut die IAX Verbindung auf - legt dann aber sofort wieder auf

Code:
context iaxout {
        // um Amt zu bekommen "0" wählen
        _0. => {
                //wenn das im Ortsnetz OHNE Vorwahl war, dann OrtsnetzNr ergänzne
                IF ( ${EXTEN:0:2}=00 )
                {
                        Dial(IAX2/000387223913/${EXTEN:1});
                        Hangup();
                }
                else
                {
                        Dial(IAX2/00038722XXXX/${ORTSNETZ}${EXTEN:1});
                        Hangup();
                };
        };
};

Im Context iaxout wird die Leitung über IAX2 gewählt, aber leider wieder direkt aufgelegt. Bei manueller wahlt funktioniert alles ?

CLI Ausgabe:

Code:
Verbosity is at least 9
    -- Attempting call on SIP/26 for 007531996770@iaxout:1 (Retry 1)
       > Channel SIP/26-908e was answered.
    -- Executing GotoIf("SIP/26-908e", "1?2:6") in new stack
    -- Goto (iaxout,007531996770,2)
    -- Executing SayDigits("SIP/26-908e", " 00") in new stack
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Executing Dial("SIP/26-908e", "IAX2/00038722XXXX/0753199XXXX") in new stack
    -- Called 00038722XXXX/0753199XXXX
    -- Call accepted by 83.125.8.46 (format ulaw)
    -- Format for call is ulaw
    -- Hungup 'IAX2/00038722XXXX-1'
  == No one is available to answer at this time (1:0/0/0)
    -- Executing Hangup("SIP/26-908e", "") in new stack
  == Spawn extension (iaxout, 00753199XXXX, 4) exited non-zero on 'SIP/26-908e'
Jul 12 13:34:42 NOTICE[22326]: pbx_spool.c:279 attempt_thread: Call completed to SIP/26

Wo liegt der Fehler ?
 
Zuletzt bearbeitet von einem Moderator:
Machmal bitte ein iax2 debug und poste den Verbindungsaufbau. Da kann man normalerweise mehr erkennen als in der CLI Ausgabe.
 
anbei die Logdaten nach dem initiieren des Anrufs

Code:
   Timestamp: 00103ms  SCall: 00002  DCall: 00001 [192.168.0.1:4569]
   USERNAME        : lxhome
   DATE TIME       : 2006-07-12  13:47:34
   REFRESH         : 60
   APPARENT ADDRES : IPV4 192.168.0.1:4569

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00103ms  SCall: 00001  DCall: 00002 [192.168.0.1:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ 
   Timestamp: 00004ms  SCall: 00003  DCall: 00000 [83.125.8.46:4569]
   USERNAME        : 000387223913
   REFRESH         : 60

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: REGAUTH
   Timestamp: 00010ms  SCall: 00005  DCall: 00003 [83.125.8.46:4569]
   AUTHMETHODS     : 3
   CHALLENGE       : 764813618
   USERNAME        : 000387223913

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: REGREQ 
   Timestamp: 00050ms  SCall: 00003  DCall: 00005 [83.125.8.46:4569]
   USERNAME        : 000387223913
   REFRESH         : 60
   MD5 RESULT      : baf4c5789984fe262e0f6f4b85370252

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: REGACK 
   Timestamp: 00056ms  SCall: 00005  DCall: 00003 [83.125.8.46:4569]
   USERNAME        : 000387223913
   DATE TIME       : 2006-07-12  13:47:34
   REFRESH         : 60
   APPARENT ADDRES : IPV4 213.9.60.244:4569
   CALLING NUMBER  : 0387223913

Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00056ms  SCall: 00003  DCall: 00005 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ 
   Timestamp: 00004ms  SCall: 00004  DCall: 00000 [192.168.0.1:4569]
   USERNAME        : lxsunware
   REFRESH         : 60

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: REGAUTH
   Timestamp: 00010ms  SCall: 00002  DCall: 00004 [192.168.0.1:4569]
   AUTHMETHODS     : 2
   CHALLENGE       : 176794348
   USERNAME        : lxsunware

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: REGREQ 
   Timestamp: 00096ms  SCall: 00004  DCall: 00002 [192.168.0.1:4569]
   USERNAME        : lxsunware
   REFRESH         : 60
   MD5 RESULT      : c80b0a9355bfdc276831e4efe0e90fe2

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: REGACK 
   Timestamp: 00101ms  SCall: 00002  DCall: 00004 [192.168.0.1:4569]
   USERNAME        : lxsunware
   DATE TIME       : 2006-07-12  13:47:36
   REFRESH         : 60
   APPARENT ADDRES : IPV4 192.168.1.200:4569

Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00101ms  SCall: 00004  DCall: 00002 [192.168.0.1:4569]
 
Zuletzt bearbeitet von einem Moderator:
ja und weiter? Wir brauchen hier das Debug bis zum Auflegen. Übrigens - um sowas vernünftig darzustellen, gibt es CODE Tags!
 
das ist das komplette debug protokoll.

Ablauf:
1. lege Datei in ... outgoing
2. SIP/26 klingelt - nehme ab
3. IAX Verbindung wird aufgebaut
4. Verbindung zu SIP/26 wird vom Asterisk beendet

Was meinst Du mit Codetags ?

Code:
Verbosity is at least 9
    -- Attempting call on SIP/26 for 007531996770@iaxout:1 (Retry 1)
       > Channel SIP/26-cbc9 was answered.
    -- Executing GotoIf("SIP/26-cbc9", "1?2:6") in new stack
    -- Goto (iaxout,007531996770,2)
    -- Executing SayDigits("SIP/26-cbc9", " 00") in new stack
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Executing Dial("SIP/26-cbc9", "IAX2/000387223913/07531996770") in new stack
    -- Called 000387223913/07531996770
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
   Timestamp: 00003ms  SCall: 00001  DCall: 00000 [83.125.8.46:4569]
   VERSION         : 2
   CALLED NUMBER   : 07531996770
   CODEC_PREFS     : (ulaw|alaw|g726|gsm)
   CALLING PRESNTN : 67
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   LANGUAGE        : en
   USERNAME        : 000387223913
   FORMAT          : 8
   CAPABILITY      : 63518
   ADSICPE         : 2
   DATE TIME       : 2006-07-12  14:08:20

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: AUTHREQ
   Timestamp: 00003ms  SCall: 00006  DCall: 00001 [83.125.8.46:4569]
   AUTHMETHODS     : 3
   CHALLENGE       : 463043010
   USERNAME        : 000387223913

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: AUTHREP
   Timestamp: 00047ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
   MD5 RESULT      : 5b69c1ab0fed0dc1ea87b85a1f5e1da0

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACCEPT 
   Timestamp: 00049ms  SCall: 00006  DCall: 00001 [83.125.8.46:4569]
   FORMAT          : 4

    -- Call accepted by 83.125.8.46 (format ulaw)
    -- Format for call is ulaw
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00049ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: VOICE   Subclass: 4
   Timestamp: 00100ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: ACK    
   Timestamp: 00100ms  SCall: 00006  DCall: 00001 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: HANGUP 
   Timestamp: 00377ms  SCall: 00006  DCall: 00001 [83.125.8.46:4569]
   CAUSE CODE      : 16

Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 003 Type: IAX     Subclass: ACK    
   Timestamp: 00377ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
    -- Hungup 'IAX2/000387223913-1'
  == No one is available to answer at this time (1:0/0/0)
    -- Executing Hangup("SIP/26-cbc9", "") in new stack
  == Spawn extension (iaxout, 007531996770, 4) exited non-zero on 'SIP/26-cbc9'
Jul 12 14:08:20 NOTICE[23889]: pbx_spool.c:279 attempt_thread: Call completed to SIP/26
MfG
 
Zuletzt bearbeitet von einem Moderator:
sunware schrieb:
Was meinst Du mit Codetags ?

Das was ich nun schon mehrmals hinter Dir hergeräumt habe, damit Dein Posting ordentlich aussieht :rolleyes:

Code:
Verbosity is at least 9

Ein Wert > 4 ist ziemlich sinnlos :wink:

Code:
    -- Call accepted by 83.125.8.46 (format ulaw)
    -- Format for call is ulaw
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00049ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: VOICE   Subclass: 4
   Timestamp: 00100ms  SCall: 00001  DCall: 00006 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: ACK    
   Timestamp: 00100ms  SCall: 00006  DCall: 00001 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: HANGUP

Das ist der entscheidende Teil. Ich denke, da gibt es ein Codec-Problem. Kannst Du mal das gleiche posten, wenn Du die Verbindung von Hand aufbaust? Da soll es ja funktionieren, also muß dort was anderes im Debug stehen.
 
Dies ist das Protokoll bei direkter Anwahl bis gegenstelle läutet, dann habe ich aufgelegt.

Code:
    -- Executing GotoIf("SIP/26-2c2b", "1?2:5") in new stack
    -- Goto (default,002151472590,2)
    -- Executing Dial("SIP/26-2c2b", "IAX2/000387223913/02151472590") in new stack
    -- Called 000387223913/02151472590
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
   Timestamp: 00012ms  SCall: 00001  DCall: 00000 [83.125.8.46:4569]
   VERSION         : 2
   CALLED NUMBER   : 02151472590
   CODEC_PREFS     : (ulaw|alaw|g726|gsm)
   CALLING NUMBER  : 426
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : 26
   LANGUAGE        : de
   USERNAME        : 000387223913
   FORMAT          : 8
   CAPABILITY      : 63518
   ADSICPE         : 2
   DATE TIME       : 2006-07-12  14:20:28

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: AUTHREQ
   Timestamp: 00002ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
   AUTHMETHODS     : 3
   CHALLENGE       : 160982185
   USERNAME        : 000387223913

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: AUTHREP
   Timestamp: 00059ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
   MD5 RESULT      : 711d6dcd9e23e67d8e88dc46f0035c34

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACCEPT 
   Timestamp: 00047ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
   FORMAT          : 4

    -- Call accepted by 83.125.8.46 (format ulaw)
    -- Format for call is ulaw
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
   Timestamp: 00047ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: CONTROL Subclass: RINGING
   Timestamp: 02548ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass: ACK    
   Timestamp: 02548ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
    -- IAX2/000387223913-1 is ringing
Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 002 Type: CONTROL Subclass: (14?)
   Timestamp: 02551ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 004 Type: IAX     Subclass: ACK    
   Timestamp: 02551ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
    -- IAX2/000387223913-1 is making progress passing it to SIP/26-2c2b
Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 002 Type: VOICE   Subclass: 4
   Timestamp: 02560ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 005 Type: IAX     Subclass: ACK    
   Timestamp: 02560ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 005 Type: VOICE   Subclass: 4
   Timestamp: 02860ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 003 Type: IAX     Subclass: ACK    
   Timestamp: 02860ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 005 Type: IAX     Subclass: LAGRQ  
   Timestamp: 10013ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 004 Type: IAX     Subclass: LAGRP  
   Timestamp: 10013ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[-01] -- OSeqno: 004 ISeqno: 006 Type: IAX     Subclass: ACK    
   Timestamp: 10013ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 004 Type: IAX     Subclass: LAGRQ  
   Timestamp: 10002ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 007 Type: IAX     Subclass: LAGRP  
   Timestamp: 10002ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
Rx-Frame Retry[ No] -- OSeqno: 007 ISeqno: 005 Type: IAX     Subclass: ACK    
   Timestamp: 10002ms  SCall: 00037  DCall: 00001 [83.125.8.46:4569]
    -- Hungup 'IAX2/000387223913-1'
  == Spawn extension (default, 002151472590, 2) exited non-zero on 'SIP/26-2c2b'
Tx-Frame Retry[000] -- OSeqno: 005 ISeqno: 007 Type: IAX     Subclass: HANGUP 
   Timestamp: 10543ms  SCall: 00001  DCall: 00037 [83.125.8.46:4569]
   CAUSE CODE      : 0
 
Zuletzt bearbeitet von einem Moderator:
Sorge mal dafür, daß in Deinem Callfile eine CALLERID gesetzt wird. Das ist für mich auf den ersten Blick der einzige erkennbare Unterschied.
 
man soll's kaum für möglich halte, aber das war die Lösung!!

super 1000 Dank - hätte es als Neuling nie gefunden !!
 
und als Hausaufgabe beschäftigst Du Dich nun mal bitte damit, herauszufinden, was CODE Tags sind :wink:
 
Kostenlos!

Neueste Beiträge

Statistik des Forums

Themen
248,873
Beiträge
2,303,515
Mitglieder
378,533
Neuestes Mitglied
PatrickSt91