Most Valued User arothfuss Posted June 12, 2015 Most Valued User #1 Share Posted June 12, 2015 Hallo zusammen. wie kann ich eine Rufnummer die im Callrouting per DTMF eingegeben wird ins kanonische Format konvertieren ? LG Andre Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 12, 2015 #2 Share Posted June 12, 2015 Hallo Andre, Auf der Server Script API gibt es eine Funktion "ConvertToCanonical". Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 12, 2015 #3 Share Posted June 12, 2015 Wenn ich mich recht entsinne macht die aber nur aus internen Rufnummern komplette kanonische Nummern. Probier es einfach mal aus. Link to comment Share on other sites More sharing options...
Most Valued User arothfuss Posted June 12, 2015 Author Most Valued User #4 Share Posted June 12, 2015 Hallo Tom, mit dem Befehl PBXScript.ConvertToCanonical sRufnummer wird im Trace das dann die Nummer Kanonisch angezeigt. 12 14:51:41.196 002284 Info SrvPBXCtl 0991C278 0000165d SScrServer::GetCallingNumReq () returning '0211123456'12 14:51:41.197 002284 Info SrvScript 07AAAA80 0000165d SPBXScript::OutputTrace () Get CallingNumber, rc = 021112345612 14:51:41.197 002284 Info SrvScrAPI 07AAAA80 0000165d SPBXScript::ConvertToCanonical (0211123456)12 14:51:41.197 002284 Inf3 SrvGk 078ACD18 0000165d SGkImpl::GetNumberConverterByEntity (U:306, L:1)12 14:51:41.197 002284 Inf3 SrvGk 078CC178 0000165d SNumberConv::ConvNum ('0211123456', InboundCalled, prefix '')12 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(International,<all plans>,°) -> (<unknown type>,<all plans>,+°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(National,<all plans>,°) -> (<unknown type>,<all plans>,+49°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(Subscriber,<all plans>,00°) -> (<unknown type>,<all plans>,+°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(Subscriber,<all plans>,0°) -> (<unknown type>,<all plans>,+49°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(Subscriber,<all plans>,°) -> (<unknown type>,<all plans>,+49711°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+300°) -> (<all types>,<all plans>,+30°), result=112 14:51:41.197 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+310°) -> (<all types>,<all plans>,+31°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+320°) -> (<all types>,<all plans>,+32°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+330°) -> (<all types>,<all plans>,+33°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+340°) -> (<all types>,<all plans>,+34°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+410°) -> (<all types>,<all plans>,+41°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+430°) -> (<all types>,<all plans>,+43°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+440°) -> (<all types>,<all plans>,+44°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+450°) -> (<all types>,<all plans>,+45°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+460°) -> (<all types>,<all plans>,+46°), result=112 14:51:41.198 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+470°) -> (<all types>,<all plans>,+47°), result=112 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+480°) -> (<all types>,<all plans>,+48°), result=112 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,+490°) -> (<all types>,<all plans>,+49°), result=112 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,000°) -> (<all types>,<all plans>,+°), result=112 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,00°) -> (<all types>,<all plans>,+49°), result=112 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () attempted rule=(<unknown type>,<all plans>,0°) -> (<all types>,<all plans>,+49711°), result=012 14:51:41.199 002284 Inf2 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () transformed (0211123456,<unknown type>,<unknown plan>) => (+49711211123456,<unknown type>,<unknown plan>) by rule (<unknown type>,<all plans>,0°) -> (<all types>,<all plans>,+49711°)12 14:51:41.199 002284 Inf3 SrvGk 078CC188 0000165d SNumberRepl::auxReplace () no rule found for input=(+49711211123456,<unknown type>,<unknown plan>)12 14:51:41.199 002284 Info SrvGk 078CC178 0000165d SNumberConv::ConvNum (InboundCalled,)~0000165d From: '0211123456',''~0000165d To: '+49711211123456','',Canonical12 14:51:41.200 002284 Info SrvPBXCtl 0991C278 0000165d SScrServer::ConvertToCanonical () returning '+49711211123456'12 14:51:41.200 002284 Info SrvPBXCtl 0991C278 0000165d SScrServer::GetCallingNumReq () returning '0211123456'12 14:51:41.200 002284 Info SrvScript 07AAAA80 0000165d SPBXScript::OutputTrace () Get CallingNumber, rc = 021112345612 14:51:41.200 002284 Info SrvScript 07AAAA80 0000165d SPBXScript::OutputTrace () 0211123456 Allerdings wenn ich mit mir danach gleich einPBXScript.OutputTrace sRufnummerkommt die Nummer wieder im eingegebenen Format.12 14:51:41.200 002284 Info SrvScript 07AAAA80 0000165d SPBXScript::OutputTrace () 0211123456 Deshalb die Frage:wird mit dem konvertieren auch gleich der Inhalt der Variable geändert oder muss die noch irgendwie upgedatet werden? Was ich eigentlich machen will: Kunde kann eine Rufnummer eingeben und diese wird per Mail zugestellt.Die Rufnummer soll aber im kanonischen Format in der Mail angezeigt werden. LG Andre Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 12, 2015 #5 Share Posted June 12, 2015 MeineVariable = PBXScript.ConvertToCanonical(DTMFEingabe)Die "MeineVariable" hast Du entweder mit dem "Variable setzen" Block angelegt, oder im "Start" Block also globale Variable definiert. In beiden Fällen kannst Du sie anschließend im "Email" Block verwenden. Link to comment Share on other sites More sharing options...
Most Valued User arothfuss Posted June 15, 2015 Author Most Valued User #6 Share Posted June 15, 2015 Hallo Tom, Super es funktioniert, Danke LG Andre Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.