Hi zusammen,
ich steh gerade vor der Aufgabe das ausgehende Rufnummern sich dementsprechend automatisch mitändern sollen. Das heißt, z.B. ich habe 3 verschiede Trunks, 1x Österreich, 1x Deutschland, 1x Italien und möchten unseren Kunden entgegenkommen und ihnen anbieten uns günstig anzurufen und genauso möchten wir günstig rausrufen können. Wenn ich jetzt nach Italien raus rufe, soll halt auch eine italienische Rufnummer angezeigt werden. (Ich weiß, ich könnte es mit Funktionstasten machen, aber es kann ja drauf vergessen werden umzuschalten)
Ich hab dazu ein Modul gebastelt. Im Prinzip funktioniert es ja. Mein Problem ist nur das ich nicht weiß wie ich die Variable richtig setzen sollen und welche ich von den vielen verwenden soll. Mit Wildcard hab ich es auch schon versucht, aber es geht trotzdem nur in eine Richtung. die andere wird prinzipiell übersprungen. Vlt könnt ihr mir da ja weiterhelfen.
Log-Daten:
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[AGIKernel]---PostLineSelection: Calling module hook 'test' )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (CALLERID(all)=00431907*******: TEST_OJA 004372078****<004372078****>)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (__SFCLIDNUM=004372078****)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (__SFCLIDINTNUM=500)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (__SFCLIDNAME=TEST_OJA)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=1920)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[info]---New CallerID for Outgoing Call 004372078**** )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (SIPRemoveHeader) Options: (P-)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (SIPRemoveHeader) Options: (privacy)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (SIPAddHeader) Options: (P-Preferred-Identity: "TEST_OJA" <sip:004372078****@starface.de>)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (CALLERID(all)=TEST_OJA <004372078****>)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[info]---for call over line UPC )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[info]---outgoingExten(formated from line): 01907******* )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (ResetCDR) Options: ()
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (EXTEN=01907*******)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[info]---Trying to place an outgoing call on line: UPC )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (ChanIsAvail) Options: (SIP/072089****)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (noop) Options: (---[info]--- AvailChan: SIP/072089****-00000130 )
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (set) Options: (AVAILCHAN="")
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (UserEvent) Options: (OutgoingCall|Channel: SIP/1003.snom360-0000012f|Uniqueid: asterisk-1402579049.339|Data: SIP/072089****,01907*******)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Set) Options: (CDR(accountcode)=1)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- AGI Script Executing Application: (Dial) Options: (SIP/072089****/01907*******|45|wWtT)
[Jun 12 15:17:29] VERBOSE[18573] logger.c: -- Called SIP/072089****/01907*******
Ich bin für jeden Vorschlag dankbar. Hab so nicht viel mit Programmieren am Hut.
Danke euch jetzt schon.