Nebenstelle läutet bei Caller ID Lookup nicht

robinsonR

Mitglied
Mitglied seit
17 Apr 2006
Beiträge
560
Punkte für Reaktionen
0
Punkte
16
Ich habe eine Trixbox (2.2.3) eingerichtet. Soweit funktioniert (fast) alles. Sobald ich bei einer Inbound Route eine CID Lookup Source angebe, läuten meine SIP-Nebenstellen nicht mehr. Der Anruf wird zwar an der Konsole angezeigt
Code:
   -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("SIP/0XXXXX-08ed33e0", "SIP/52||trd") in new stack
    -- Called 52
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("SIP/0XXXXX-08ed33e0", "SIP/52||trd") in new stack
    -- Called 52
und wird auch in die Anrufliste aufgenommen, die Nebenstelle klingelt aber nicht. Wenn die Nummer aber im Telefonbuch ist, funktioniert es.
Woran könnte das liegen?

PS. Übrigens funktioniert auch die Callback-Funktion nicht.
 
zeig mal bitte die CLI Ausgabe von einem Anruf, der funktioniert.
 
Habe jetzt meine Konfiguration zu Testzwecken ein wenig vereinfacht. Der einkommende Anruf wird jetzt direkt zur Nebenstelle 52 verbunden. Jetzt erhalte ich folgende Konsoleneinträge:
Code:
 -- Executing NoOp("SIP/0445200489-08ef2488", "Received incoming SIP connection from unknown peer to 0445200489") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "DID=0445200489") in new stack
    -- Executing Goto("SIP/0445200489-08ef2488", "s|1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?from-trunk|0445200489|1") in new stack
    -- Goto (from-trunk,0445200489,1)
    -- Executing Set("SIP/0445200489-08ef2488", "__FROM_DID=0445200489") in new stack
    -- Executing Gosub("SIP/0445200489-08ef2488", "cidlookup|cidlookup_1|1") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?cidlookup|cidlookup_return|1") in new stack
    -- Goto (cidlookup,cidlookup_return,1)
    -- Executing LookupCIDName("SIP/0445200489-08ef2488", "") in new stack
    -- Changed Caller*ID name to 
Asam Tobler & Partner
    -- Executing Return("SIP/0445200489-08ef2488", "") in new stack
    -- Executing Gosub("SIP/0445200489-08ef2488", "app-blacklist-check|s|1") in new stack
    -- Executing LookupBlacklist("SIP/0445200489-08ef2488", "") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "0?blacklisted") in new stack
    -- Executing Return("SIP/0445200489-08ef2488", "") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1 ?cidok") in new stack
    -- Goto (from-trunk,0445200489,6)
    -- Executing NoOp("SIP/0445200489-08ef2488", "CallerID is "
Asam Tobler & Partner" <0442912030>") in new stack
    -- Executing Goto("SIP/0445200489-08ef2488", "from-did-direct|52|1") in new stack
    -- Goto (from-did-direct,52,1)
    -- Executing Macro("SIP/0445200489-08ef2488", "exten-vm|novm|52") in new stack
    -- Executing Macro("SIP/0445200489-08ef2488", "user-callerid") in new stack
    -- Executing NoOp("SIP/0445200489-08ef2488", "user-callerid: 
Asam Tobler & Partner 0442912030") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "AMPUSER=0442912030") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "0?report") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "0?start") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "REALCALLERIDNUM=0442912030") in new stack
    -- Executing NoOp("SIP/0445200489-08ef2488", "REALCALLERIDNUM is 0442912030") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "AMPUSER=") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "AMPUSERCIDNAME=") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?report") in new stack
    -- Goto (macro-user-callerid,s,13)
    -- Executing NoOp("SIP/0445200489-08ef2488", "TTL:  ARG1: novm") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "0?continue") in new stack
    -- Executing Macro("SIP/0445200489-08ef2488", "benachrichtigung") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "IP=") in new stack
    -- Executing Notify("SIP/0445200489-08ef2488", "0442912030|
Asam Tobler & Partner|SJPhone/") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "__TTL=64") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,24)
    -- Executing NoOp("SIP/0445200489-08ef2488", "Using CallerID "
Asam Tobler & Partner" <0442912030>") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "FROMCONTEXT=exten-vm") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "VMBOX=novm") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "EXTTOCALL=52") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "CFUEXT=") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "CFBEXT=") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "RT=") in new stack
    -- Executing Macro("SIP/0445200489-08ef2488", "record-enable|52|IN") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("SIP/0445200489-08ef2488", "recordingcheck|20070920-152858|1190294938.193") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20070920-152858|1190294938.193: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/0445200489-08ef2488", "No recording needed") in new stack
    -- Executing Macro("SIP/0445200489-08ef2488", "dial||trd|52") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing AGI("SIP/0445200489-08ef2488", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  dialparties.agi: Caller ID name is '' number is '0442912030'
  dialparties.agi: USE_CONFIRMATION:  'FALSE'
  dialparties.agi: RINGGROUP_INDEX:   ''
  dialparties.agi: Methodology of ring is  'none'
    --  dialparties.agi: Added extension 52 to extension map
    --  dialparties.agi: Extension 52 cf is disabled
    --  dialparties.agi: Extension 52 do not disturb is disabled
       >  dialparties.agi: extnum 52 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
       >  dialparties.agi: ExtensionState: 0
    --  dialparties.agi: dbset CALLTRACE/52 to 0442912030
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("SIP/0445200489-08ef2488", "SIP/52||trd") in new stack
    -- Called 52
    -- SIP/52-08efd508 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing Set("SIP/0445200489-08ef2488", "DIALSTATUS=CONGESTION") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "SV_DIALSTATUS=CONGESTION") in new stack
    -- Executing GosubIf("SIP/0445200489-08ef2488", "0?docfu|1") in new stack
    -- Executing GosubIf("SIP/0445200489-08ef2488", "0?docfb|1") in new stack
    -- Executing Set("SIP/0445200489-08ef2488", "DIALSTATUS=CONGESTION") in new stack
    -- Executing NoOp("SIP/0445200489-08ef2488", "Voicemail is novm") in new stack
    -- Executing GotoIf("SIP/0445200489-08ef2488", "1?s-CONGESTION|1") in new stack
    -- Goto (macro-exten-vm,s-CONGESTION,1)
    -- Executing PlayTones("SIP/0445200489-08ef2488", "congestion") in new stack
    -- Executing Congestion("SIP/0445200489-08ef2488", "10") in new stack
  == Spawn extension (macro-exten-vm, s-CONGESTION, 2) exited non-zero on 'SIP/0445200489-08ef2488' in macro 'exten-vm'
  == Spawn extension (macro-exten-vm, s-CONGESTION, 2) exited non-zero on 'SIP/0445200489-08ef2488'
Wenn ich die Mailbox aktiviere, nimmt die den Anruf ganz normal entgegen. Es scheint so, als ob keine Nebenstelle aktiv ist. Noch eine Idee?

Habe jetzt noch ein paar Tests gemacht und bin nun etwas weiter. Meine Reverse-Suche macht dieser Skript
Code:
<?
/*************************************************************
Caller Name Lookup / CallerID reverse lookup for Swiss Numbers
(c) 2006 by it factory ag / www.guest-voip.ch
May be freely distributed without modification
Version:  V1.2 / 17.8.06, Daniel Jög
Link:     http://www.guest-voip.ch/VoIP_Client_Setup
**************************************************************/

include "Snoopy.class.php";
$snoopy = new Snoopy;
$snoopy->fetch("http://tel.search.ch/" . $HTTP_GET_VARS['tel']);

$GrabStart = '<div class="rname">';
$GrabEnd = '<td class="changelink">';
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $snoopy->results, $output1);

$output1[1] = str_replace("&ouml;", "oe", $output1[1]);
$output1[1] = str_replace("&Ouml;", "Oe", $output1[1]);
$output1[1] = str_replace("&auml;", "ae", $output1[1]);
$output1[1] = str_replace("&Auml;", "Ae", $output1[1]);
$output1[1] = str_replace("&uuml;", "ue", $output1[1]);
$output1[1] = str_replace("&Uuml;", "Ue", $output1[1]);


$output1[1] = str_replace(",", "", $output1[1]);
$output1[1] = str_replace("&amp;", "&", $output1[1]);
$output1[1] = str_replace("</div>", "ZZZ</div>", $output1[1]);


# HTML Code entfernen und Zeilenumbruch einf?~C¼gen
$output1[1] =preg_replace('/(\\s+)/', ' ',$output1[1] );
$output1[1] = strip_tags($output1[1]);
$output1[1] = str_replace("ZZZ", "\n", $output1[1]);
$name= explode("\n", wordwrap($output1[1], 15));

echo $name[0];
?>
Das funktioniert auch soweit bis auf die letzte Zeile. Sobald ich diese auskommentiere, klingeln meine Nebenstellen. Natürlich wird dann kein Name angezeigt, aber immerhin ist wohl der Fehler lokalisiert. Kennt sich da jemand aus und weiss, wie ich das zum Laufen bringe?
 
Zuletzt bearbeitet:
Evtl. bin ich einen Schritt weiter. Leider funktioniert es immer noch nicht. Was ich nach dem Einschalten von agi debug herausgefunden habe:
Code:
AGI Tx >> agi_callerid: 0442912030
AGI Tx >> agi_calleridname: 
TEST
den Zeilenumbruch zwischen «agi_calleridname:» und «TEST» (mein Anruferername) gibt es nicht, wenn die Nummer bekannt ist, folglich nicht im Internet gesucht werden muss und darum die Nebenstelle klingelt.
Liegt dort der Hund begraben und wenn ja, wie bringe ich diese Zeilenschaltung weg?
 
Hat denn niemand mehr einen Tipp für mich? Bin echt ratlos, was ich noch probieren könnte, um die Sache wieder zum Laufen zu bringen.
 
Kann mir bei diesem Problem eigentlich niemand helfen?
 
Kostenlos!

Zurzeit aktive Besucher

Statistik des Forums

Themen
247,226
Beiträge
2,264,087
Mitglieder
375,731
Neuestes Mitglied
regalleuchte