Least Cost Routing komplett!

hast du in deiner extensions.conf die extensions.tsblcr inkludiert??

wenn du die 0 vorstellen willst, nutzt du
Code:
exten=> _0xx.,1,Macro(tsblcr,${EXTEN:1},/etc/asterisk/lcr/tsblcr.routing,109,ICH,mISDN/g:TE/,/etc/asterisk/sip.conf)
exten=> _0xx.,2,Congestion
exten=> _0xx.,102,Busy
 
Also Sorry ich bin unwürdig, aber was meinst Du damit?

Die extensions.tsblcr inkludieren?

Mit

[default]

include=>extensions.tsblcr

???

Oder wie? Ich dachte, da inkludiere ich nur Labels (Kontexte) welche In der extensions.conf vorkommen, oder?

Nochmal vielen Dank. Du musst ja denken, ich hab von nix ne Ahnung...

Grüße
Klaus
 
#include lcr/extensions.tsblcr
bzw
#include extensions.tsblcr
je nachdem wo die datei relativ zur extensions.conf liegt. solche generellen facts gibt es sowohl hier als auch auf voip-info.org zur genuege und in allen details zu finden. die suche ist dabei nuetzlich
 
Hallo allesOK,

den Befehl kannte ich echt noch nicht, aber mal in der Original extenensions.conf nachgeschaut, dann verstehts auch ein Franke. Danke.

Ich hab jetzt in der extensions.conf unter [general] include=lcr/extensions.tsblcr stehen und da ist die Datei auch.

Trotzdem bekomme ich immer noch die gleiche Fehlermeldung in der * CLI. Also eben
Code:
WARNING[9334]: app_macro.c:90 macro_exec: No such context 'macro-tsblcr' for macro 'tsblcr'
    -- Executing Congestion("SIP/12-9618", "") in new stack
  == Spawn extension (default, 00917XXXXX, 2) exited non-zero on 'SIP/12-9618'


Grüße
Klaus
 
neee genau so wie ich es geschrieben habe mit # am besten gleich am anfang der extensions.conf
 
Bei installierten älteren PHP-Versionen liefert das AGI-Script tsblcr.agi den Wert 0 zurück, was Quatsch ist. Dann funktioniert das ganze LCR nicht,

Hier ein kleiner Patch, der am Anfang der Datei /var/lib/asterisk/agi-bin/tsblcr.agi eingefügt wird:

[php:1:c811513091]
<?php

if (!defined('STDIN')) {
define('STDIN', fopen('php://stdin', 'r'));
}
if (!defined('STDOUT')) {
define('STDOUT', fopen('php://stdout', 'w'));
}
if (!defined('STDERR')) {
define('STDERR', fopen('php://stderr', 'w'));
}
[/php:1:c811513091]

Der Frosch
 
danke dir, ich werde es gleich montag einarbeiten und auf den server uploaden
 
Mit liefert 0 ist auch Quatsch. Sorry. Aber mit dem Patch funzt es z.B. auf Asterisk@Home. Da ist PHP 4.3.2 standardmäßig installiert. Kann sein, dass da die CLI-Version fehlt. Aber wie gesagt. mit dem Patch läufts auch da.

Gute Idee, dass Du das in Dein Script mit reinnimmst.

Gruß

Der Frosch

P.S.: Signatur wird aktualisisert, sowie meine Box funktioniert. ;)
 
Hallo, also ich dreh her gleich ab, bei mir funktionierts einfach nicht, drum hier mal meine komplette extensions.conf:

Code:
[general]
;
static=yes
writeprotect=no
language=de
#include=lcr/extensions.tsblcr

[globals]
ptpStamm=109

[default]

include=> 10
include=> 11
include=> 12
include=> 14
include=> 15
;include=> 16
include=> 17
include=> kptest
include=> 18
include=> 19
include=> 20
include=> 26
include=> 57
include=> 66
include=> 69
include=> 89
include=> 98
include=> 99
include=> sipgate-out
include=> sipgate-in
include=> ptp
include=> Voicemenu1
include=> webdein
include=> macro-tsblcr

;exten=>_xx.,1,Dial,CAPI/109:${EXTEN}
;exten=>_xx.,2,Congestion

[sipgate-out]
exten => _7.,1,SetCallerId(6265529)
exten => _7.,2,Dial(SIP/${EXTEN:1}@sipgate-out,60,trg)
exten => _7.,3,Congestion
exten => _7.,4,Busy
exten => _7.,5,Hangup

[sipgate-in]
exten => _626XXXX,1,Dial(SIP/12)
exten => _626XXXX,2,Busy
exten => _626XXXX,3,Hangup

[webdein]
exten => webdein,1,Dial(SIP/12)

[macro-tsblcr]
exten=> _${ptpStamm}XX,1,Goto(default,${EXTEN:3},1)
exten=> _${ptpStamm}XX,2,Congestion
exten=> _${ptpStamm}XX,102,Hangup

:exten=> _xx.,1,Dial,mISDN/g:TE/${EXTEN}
exten=> _xx.,1,Macro(tsblcr,${EXTEN},/etc/asterisk/lcr/tsblcr.routing,109,ICH,mISDN/g:TE/,/etc/asterisk/sip.conf)
exten=> _xx.,2,Congestion
exten=> _xx.,102,Busy

;[capicall]
;exten=>109,1,Dial(SIP/14)
;exten=>110,1,Dial(SIP/20)

[Voicemenu1]
exten=> s,1,Background(hob_verbunden)
exten=> 1,1,dial(IAX2/14)
exten=> 2,1,dial(mISDN/g:TE/329)

[10]
;exten => 10,1,Dial(SIP/${EXTEN},60)
exten => 10,1,Dial(SIP/10,10)
exten => 10,2,Voicemail(12)
exten => 10,5,Hangup
exten => 10,102,Busy

[12]
exten => 12,1,System(echo "${DATETIME} - ${CALLERID}" >> /home/kperas/Documents/test.txt)
exten => 12,2,Dial(SIP/12,10)
exten => 12,3,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 12,4,Voicemail(12)
;exten => 12,3,Answer
;exten => 12,4,Playback(vm-options)
exten => 12,5,Hangup
exten => 12,102,Busy

[14]
exten => 14,1,SetLanguage(de)
exten => 14,2,Dial(IAX2/14,5)
exten => 14,3,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 14,4,Goto(Voicemenu1,s,1)
exten => 14,5,Hangup
exten => 14,102,Busy

[15]
exten => 15,1,SetLanguage(de)
exten => 15,2,Dial(SIP/15,20)
exten => 15,3,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 15,4,Voicemail(15)
exten => 15,5,Hangup
exten => 15,102,Busy

[17]
exten => 17,1,Dial(SIP/kptest)
exten => 17,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 17,3,Voicemail(17)
exten => 17,4,Hangup
exten => 17,102,Busy

[18]
exten => 18,1,Dial(SIP/18)
exten => 18,2,Hangup
exten => 18,102,Busy

[19]
;exten => 19,1,Answer
exten => 19,1,Dial(SIP/19)
exten => 19,3,Hangup
exten => 19,102,Busy

[26]
exten => 26,1,Dial(SIP/26,15)
exten => 26,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 26,3,Voicemail(26)
exten => 26,4,Hangup
exten => 26,102,Busy

[57]
exten => 57,1,Dial(SIP/57,10)
exten => 57,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 57,3,Voicemail(57)
exten => 57,4,Hangup
exten => 57,102,Busy

[65]
exten => 65,1,Dial(SIP/65,10)
exten => 65,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 65,3,Voicemail(65)
exten => 65,4,Hangup
exten => 65,102,Busy

[66]
exten => 66,1,SetCallerID(66)
exten => 66,2,Dial(SIP/66,15)
exten => 66,3,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 66,4,Voicemail(66)
exten => 66,5,Hangup
exten => 66,102,Busy

[69]
exten => 69,1,Dial(SIP/69,15)
exten => 69,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 69,3,Voicemail(69)
exten => 69,5,Hangup
exten => 69,102,Busy

[99]
exten => 99,1,Dial(SIP/99,10)
exten => 99,2,System(echo "${DATETIME} - ${CALLERID} hat versucht Dich zu erreichen." | mail -s Anrufbenachrichtigung [email][email protected][/email] -r [email][email protected][/email])
exten => 99,3,Voicemail(99)
exten => 99,5,Hangup
exten => 99,102,Busy

;[sipgate]
;exten => 555xxxx,1,Dial(SIP/12 ,20)

[11] ; Voicemail
exten => 11,1,SetLanguage(de)
exten => 11,2,VoicemailMain(s${CALLERIDNUM})
exten => 11,3,Hangup

[89]
exten => 89,1,Goto(menu,s,1)

[menu] ; Voicemenu
exten =>s,1,Answer()
exten =>s,2,Background(vm-options)
;exten =>s,3,Hangup
exten => 1,1,Playback(vm-opts)
exten => 1,2,Goto(89,89,1)
exten => 2,1,Playback(Aphrodite_jungleBros)
exten => 2,2,Goto(89,89,1)

;exten => 98,102,Hangup

Und hier die Ausgabe von * :
Code:
*CLI>     -- Executing Macro("SIP/66-76d2", "tsblcr|00917XXXXX|/etc/asterisk/lcr/tsblcr.routing|109|ICH|mISDN/g:TE/|/etc/asterisk/sip.conf") in new stack
Jun 20 09:36:23 WARNING[25925]: app_macro.c:92 macro_exec: Context 'macro-tsblcr' for macro 'tsblcr' lacks 's' extension, priority 1
    -- Executing Congestion("SIP/66-76d2", "") in new stack
  == Spawn extension (default, 00917XXXXX, 2) exited non-zero on 'SIP/66-76d2'

Was mache ich falsch?

Hier noch meine php Version:
Code:
asterisk:/etc/asterisk # php -v
PHP 4.3.8 (cli) (built: Oct  5 2004 12:56:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Danke für eure Hilfe.
Grüße
Klaus
 
schreib mal

#include lcr/extensions.tsblcr

gleich in die erste zeile, statt

#include=lcr/extensions.tsblcr

im [general] abschnitt. wichtig: ohne '='
 
Hallo,

erstmal vielen Dank für die Viele Unterstützung!

Hab ich jetzt so gemacht, wie Du gesagt hast. Jetzt kommt bei meinen SIP CLients die Meldung "404 Not Found"

Ich glaube ja mittlerweile, dass das bei mir nicht so einfach zu implementieren ist, weil mein * an einer Nortel Telefonanlage dranhängt, an einem in der Nortel konfigureirten ISDN Nebenstellenanschluss. Sprich mein * muss zum rauswählen die 0 vorwählen. Diese wird von jeweiligen Client mitgewählt also der Client wählt z. B. 00891234567 für eine nummer in München. Aussserdem kann man über diesen internen S0 Bus natürlich auch die Systemtelefone an der Nortel erreichen, diese sind dreistellig. in der * verwende ich für die Clients zweistellige Nummern. Drum ging das mit dem Eintrag
Code:
exten=> _XX.,1,Dial,mISDN/g:TE/${EXTEN}
immer recht geschmeidig.

Hast Du noch eine Idee?

Grüße Klaus

p.s. nur damit du es glaubst:
Code:
#include lcr/extensions.tsblcr
[general]
;
static=yes
writeprotect=no
language=de
[globals]
ptpStamm=109

[default]

Wenn ich das eingefügt habe und in der CLI reload absetze kommt das hier raus:
Code:
asterisk*CLI> reload
  == Parsing '/etc/asterisk/extconfig.conf': Found
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/enum.conf': Found
  == Parsing '/etc/asterisk/rtp.conf': Found
  == RTP Allocating from port range 10000 -> 20000
    -- Reloading module 'res_indications.so' (Indications Configuration)
    -- Unregistered indication country 'cl'
    -- Unregistered indication country 'tw'
    -- Unregistered indication country 'us'
    -- Unregistered indication country 'au'
    -- Unregistered indication country 'fr'
    -- Unregistered indication country 'de'
Jun 21 11:55:06 NOTICE[26433]: indications.c:397 ast_unregister_indication_country: Removed default indication country 'nl'
    -- Unregistered indication country 'nl'
    -- Unregistered indication country 'uk'
    -- Unregistered indication country 'fi'
    -- Unregistered indication country 'no'
    -- Unregistered indication country 'br'
    -- Unregistered indication country 'za'
    -- Unregistered indication country 'it'
    -- Unregistered indication country 'us-o'
    -- Unregistered indication country 'gr'
    -- Unregistered indication country 'ru'
    -- Unregistered indication country 'nz'
  == Parsing '/etc/asterisk/indications.conf': Found
    -- Registered indication country 'cl'
    -- Registered indication country 'tw'
    -- Registered indication country 'us'
    -- Registered indication country 'au'
    -- Registered indication country 'fr'
    -- Registered indication country 'de'
    -- Registered indication country 'nl'
    -- Registered indication country 'uk'
    -- Registered indication country 'fi'
    -- Registered indication country 'no'
    -- Registered indication country 'br'
    -- Registered indication country 'za'
    -- Registered indication country 'it'
    -- Registered indication country 'us-o'
    -- Registered indication country 'gr'
    -- Registered indication country 'ru'
    -- Registered indication country 'nz'
    -- Setting default indication country to 'nl'
    -- Reloading module 'res_crypto.so' (Cryptographic Digital Signatures)
    -- Reloading module 'res_adsi.so' (ADSI Resource)
  == Parsing '/etc/asterisk/adsi.conf': Found
    -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP))
 Reloading MGCP
  == Parsing '/etc/asterisk/mgcp.conf': Found
  == MGCP Listening on 0.0.0.0:2727
  == Using TOS bits 0
    -- Reloading module 'chan_misdn.so' (Channel driver for mISDN Support (Bri/Pri))
Reloading mISDN Config
  == Parsing '/etc/asterisk/misdn.conf': Found
    -- Reloading module 'chan_local.so' (Local Proxy Channel)
    -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
  == Parsing '/etc/asterisk/iax.conf': Found
  == Loaded firmware 'iaxy.bin'
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Reloading module 'chan_agent.so' (Agent Proxy Channel)
  == Parsing '/etc/asterisk/agents.conf': Found
    -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
  == Parsing '/etc/asterisk/voicemail.conf': Found
    -- Reloading module 'app_enumlookup.so' (ENUM Lookup)
  == Parsing '/etc/asterisk/enum.conf': Found
    -- Reloading module 'pbx_config.so' (Text Extension Configuration)
  == Parsing '/etc/asterisk/extensions.conf': Found
  == Parsing '/etc/asterisk/lcr/extensions.tsblcr': Found
    -- Setting global variable 'ptpStamm' to '109'
    -- Registered extension context 'macro-tsblcr'
    -- Added extension 's' priority 1 to macro-tsblcr
    -- Added extension 's' priority 2 to macro-tsblcr
    -- Added extension 's' priority 3 to macro-tsblcr
    -- Added extension 's' priority 4 to macro-tsblcr
    -- Added extension 's' priority 5 to macro-tsblcr
    -- Added extension 's' priority 6 to macro-tsblcr
    -- Added extension 's' priority 7 to macro-tsblcr
    -- Added extension 's' priority 8 to macro-tsblcr
    -- Added extension 's' priority 9 to macro-tsblcr
    -- Added extension 's' priority 10 to macro-tsblcr
    -- Added extension 'dial' priority 1 to macro-tsblcr
    -- Added extension 'dial' priority 2 to macro-tsblcr
    -- Added extension 'dial' priority 3 to macro-tsblcr
    -- Added extension 'dial' priority 4 to macro-tsblcr
    -- Added extension 'dial' priority 5 to macro-tsblcr
    -- Added extension 'dial' priority 6 to macro-tsblcr
    -- Added extension 'dial' priority 7 to macro-tsblcr
    -- Added extension 'sip' priority 1 to macro-tsblcr
    -- Added extension 'sip' priority 2 to macro-tsblcr
    -- Added extension 'sip' priority 3 to macro-tsblcr
    -- Added extension 'sip' priority 4 to macro-tsblcr
    -- Added extension 'sip' priority 5 to macro-tsblcr
    -- Added extension 'sip' priority 6 to macro-tsblcr
    -- Added extension 'sip' priority 7 to macro-tsblcr
    -- Added extension 'sip' priority 8 to macro-tsblcr
    -- Added extension 'sip' priority 9 to macro-tsblcr
    -- Added extension 'sip' priority 10 to macro-tsblcr
    -- Added extension 'sip' priority 11 to macro-tsblcr
    -- Added extension 'sip' priority 12 to macro-tsblcr
    -- Added extension 'sip' priority 13 to macro-tsblcr
    -- Added extension 'sip' priority 14 to macro-tsblcr
    -- Added extension 'sip' priority 104 to macro-tsblcr
    -- Added extension 'pstn' priority 1 to macro-tsblcr
    -- Added extension 'pstn' priority 2 to macro-tsblcr
    -- Added extension 'pstn' priority 3 to macro-tsblcr
    -- Added extension 'pstn' priority 4 to macro-tsblcr
    -- Added extension 'pstn' priority 5 to macro-tsblcr
    -- Added extension 'pstn' priority 6 to macro-tsblcr
    -- Added extension 'pstn' priority 7 to macro-tsblcr
    -- Added extension 'pstn' priority 10 to macro-tsblcr
    -- Added extension 'pstn' priority 11 to macro-tsblcr
    -- Added extension 'pstn' priority 111 to macro-tsblcr
    -- Added extension 'pstn' priority 211 to macro-tsblcr
    -- Added extension 'pstn' priority 20 to macro-tsblcr
    -- Added extension 'pstn' priority 21 to macro-tsblcr
    -- Added extension 'pstn' priority 121 to macro-tsblcr
    -- Added extension 'pstn' priority 221 to macro-tsblcr
    -- Added extension 'ds-ANSWER' priority 1 to macro-tsblcr
    -- Added extension 'ds-BUSY' priority 1 to macro-tsblcr
    -- Added extension 'ds-BUSY' priority 2 to macro-tsblcr
    -- Added extension 'ds-BUSY' priority 10 to macro-tsblcr
    -- Added extension 'ds-BUSY' priority 11 to macro-tsblcr
    -- Added extension 'ds-BUSY' priority 12 to macro-tsblcr
    -- Added extension 'ds-CANCEL' priority 1 to macro-tsblcr
    -- Added extension 'ds-NOANSWER' priority 1 to macro-tsblcr
    -- Added extension 'ds-CONGESTION' priority 1 to macro-tsblcr
    -- Added extension 'ds-CHANUNAVAIL' priority 1 to macro-tsblcr
    -- Added extension 'ds-CHANUNAVAIL' priority 2 to macro-tsblcr
    -- Added extension 'ds-CHANUNAVAIL' priority 3 to macro-tsblcr
    -- Added extension 'ds-CHANUNAVAIL' priority 4 to macro-tsblcr
    -- Added extension 'ds-CHANUNAVAIL' priority 5 to macro-tsblcr
    -- Added extension 'disabled' priority 1 to macro-tsblcr
    -- Added extension 'disabled' priority 2 to macro-tsblcr
    -- Added extension 'disabled' priority 3 to macro-tsblcr
    -- Added extension 'disabled' priority 4 to macro-tsblcr
    -- Added extension 'disabled' priority 5 to macro-tsblcr
    -- Added extension 'disabled' priority 10 to macro-tsblcr
    -- Added extension 'end' priority 1 to macro-tsblcr
    -- Added extension 'end' priority 2 to macro-tsblcr
    -- Added extension 'end' priority 3 to macro-tsblcr
    -- Added extension 'end' priority 10 to macro-tsblcr
    -- Added extension 'restart' priority 1 to macro-tsblcr
    -- Added extension 'restart' priority 2 to macro-tsblcr
    -- Added extension 'restart' priority 3 to macro-tsblcr
    -- Registered extension context 'tsblcr'
    -- Added extension '_X.' priority 1 to tsblcr
    -- Registered extension context 'tsblcrwithprefix'
    -- Added extension '_0X.' priority 1 to tsblcrwithprefix
    -- Registered extension context 'default'
    -- Including context '10' in context 'default'
    -- Including context '11' in context 'default'
    -- Including context '12' in context 'default'
    -- Including context '14' in context 'default'
    -- Including context '15' in context 'default'
    -- Including context '17' in context 'default'
    -- Including context 'kptest' in context 'default'
    -- Including context '18' in context 'default'
    -- Including context '19' in context 'default'
    -- Including context '20' in context 'default'
    -- Including context '26' in context 'default'
    -- Including context '57' in context 'default'
    -- Including context '66' in context 'default'
    -- Including context '69' in context 'default'
    -- Including context '89' in context 'default'
    -- Including context '98' in context 'default'
    -- Including context '99' in context 'default'
    -- Including context 'sipgate-out' in context 'default'
    -- Including context 'sipgate-in' in context 'default'
    -- Including context 'ptp' in context 'default'
    -- Including context 'Voicemenu1' in context 'default'
    -- Including context 'webdein' in context 'default'
    -- Including context 'macro-tsblcr' in context 'default'
    -- Registered extension context 'sipgate-out'
    -- Added extension '_7.' priority 1 to sipgate-out
    -- Added extension '_7.' priority 2 to sipgate-out
    -- Added extension '_7.' priority 3 to sipgate-out
    -- Added extension '_7.' priority 4 to sipgate-out
    -- Added extension '_7.' priority 5 to sipgate-out
    -- Registered extension context 'sipgate-in'
    -- Added extension '_626XXXX' priority 1 to sipgate-in
    -- Added extension '_626XXXX' priority 2 to sipgate-in
    -- Added extension '_626XXXX' priority 3 to sipgate-in
    -- Registered extension context 'webdein'
    -- Added extension 'webdein' priority 1 to webdein
Jun 21 11:55:06 WARNING[26433]: pbx.c:2979 ast_context_create: Tried to register context 'macro-tsblcr', already in use
    -- Registered extension context 'Voicemenu1'
    -- Added extension 's' priority 1 to Voicemenu1
    -- Added extension '1' priority 1 to Voicemenu1
    -- Added extension '2' priority 1 to Voicemenu1
    -- Registered extension context '10'
    -- Added extension '10' priority 1 to 10
    -- Added extension '10' priority 2 to 10
    -- Added extension '10' priority 5 to 10
    -- Added extension '10' priority 102 to 10
    -- Registered extension context '12'
    -- Added extension '12' priority 1 to 12
    -- Added extension '12' priority 2 to 12
    -- Added extension '12' priority 3 to 12
    -- Added extension '12' priority 4 to 12
    -- Added extension '12' priority 5 to 12
    -- Added extension '12' priority 102 to 12
    -- Registered extension context '14'
    -- Added extension '14' priority 1 to 14
    -- Added extension '14' priority 2 to 14
    -- Added extension '14' priority 3 to 14
    -- Added extension '14' priority 4 to 14
    -- Added extension '14' priority 5 to 14
    -- Added extension '14' priority 102 to 14
    -- Registered extension context '15'
    -- Added extension '15' priority 1 to 15
    -- Added extension '15' priority 2 to 15
    -- Added extension '15' priority 3 to 15
    -- Added extension '15' priority 4 to 15
    -- Added extension '15' priority 5 to 15
    -- Added extension '15' priority 102 to 15
    -- Registered extension context '17'
    -- Added extension '17' priority 1 to 17
    -- Added extension '17' priority 2 to 17
    -- Added extension '17' priority 3 to 17
    -- Added extension '17' priority 4 to 17
    -- Added extension '17' priority 102 to 17
    -- Registered extension context '18'
    -- Added extension '18' priority 1 to 18
    -- Added extension '18' priority 2 to 18
    -- Added extension '18' priority 102 to 18
    -- Registered extension context '19'
    -- Added extension '19' priority 1 to 19
    -- Added extension '19' priority 3 to 19
    -- Added extension '19' priority 102 to 19
    -- Registered extension context '26'
    -- Added extension '26' priority 1 to 26
    -- Added extension '26' priority 2 to 26
    -- Added extension '26' priority 3 to 26
    -- Added extension '26' priority 4 to 26
    -- Added extension '26' priority 102 to 26
    -- Registered extension context '57'
    -- Added extension '57' priority 1 to 57
    -- Added extension '57' priority 2 to 57
    -- Added extension '57' priority 3 to 57
    -- Added extension '57' priority 4 to 57
    -- Added extension '57' priority 102 to 57
    -- Registered extension context '65'
    -- Added extension '65' priority 1 to 65
    -- Added extension '65' priority 2 to 65
    -- Added extension '65' priority 3 to 65
    -- Added extension '65' priority 4 to 65
    -- Added extension '65' priority 102 to 65
    -- Registered extension context '66'
    -- Added extension '66' priority 1 to 66
    -- Added extension '66' priority 2 to 66
    -- Added extension '66' priority 3 to 66
    -- Added extension '66' priority 4 to 66
    -- Added extension '66' priority 5 to 66
    -- Added extension '66' priority 102 to 66
    -- Registered extension context '69'
    -- Added extension '69' priority 1 to 69
    -- Added extension '69' priority 2 to 69
    -- Added extension '69' priority 3 to 69
    -- Added extension '69' priority 5 to 69
    -- Added extension '69' priority 102 to 69
    -- Registered extension context '99'
    -- Added extension '99' priority 1 to 99
    -- Added extension '99' priority 2 to 99
    -- Added extension '99' priority 3 to 99
    -- Added extension '99' priority 5 to 99
    -- Added extension '99' priority 102 to 99
    -- Registered extension context '11'
    -- Added extension '11' priority 1 to 11
    -- Added extension '11' priority 2 to 11
    -- Added extension '11' priority 3 to 11
    -- Registered extension context '89'
    -- Added extension '89' priority 1 to 89
    -- Registered extension context 'menu'
    -- Added extension 's' priority 1 to menu
    -- Added extension 's' priority 2 to menu
    -- Added extension '1' priority 1 to menu
    -- Added extension '1' priority 2 to menu
    -- Added extension '2' priority 1 to menu
    -- Added extension '2' priority 2 to menu
Jun 21 11:55:06 WARNING[26433]: pbx.c:5079 ast_context_verify_includes: Context 'default' tries includes non-existant context 'kptest'
Jun 21 11:55:06 WARNING[26433]: pbx.c:5079 ast_context_verify_includes: Context 'default' tries includes non-existant context '20'
Jun 21 11:55:06 WARNING[26433]: pbx.c:5079 ast_context_verify_includes: Context 'default' tries includes non-existant context '98'
Jun 21 11:55:06 WARNING[26433]: pbx.c:5079 ast_context_verify_includes: Context 'default' tries includes non-existant context 'ptp'
    -- Reloading module 'app_queue.so' (True Call Queueing)
  == Parsing '/etc/asterisk/queues.conf': Found
    -- Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
    -- parse_srv: SRV mapped to host sip-ha.web.de, port 5060
    -- parse_srv: SRV mapped to host proxy.de.sipgate.net, port 5060
Jun 21 11:55:09 WARNING[26433]: chan_sip.c:6874 handle_response: Host '172.22.60.186' does not implement 'NOTIFY'

Sollte mich "Jun 21 11:55:06 WARNING[26433]: pbx.c:2979 ast_context_create: Tried to register context 'macro-tsblcr', already in use" verunsichern? Was bedeutet das?

Also Danke nochmal für die Hilfe
Klaus
 
ok, die 0 bekommst du geloest, indem du im makro selbst dort wo das PSTN-Dial ist noch eine Null davor haengst. Das ist halt eine Spezialloesung, waehrend das Skript eher von den Standard-Benutzer gedacht war. Mussu halt anpassen.

Das Already in use hab ich noch nie gesehen. Sieht aus, als ob er das doppelt inkludieren wuerde?!?!?!?
 
:) Danke dass Du mir das zutraust, aber leider....

Ich schätze mal, Du meinst die Datei tsblcr.agi oder? Aber wo soll ich da die Null eintragen :?

Grüße
Klaus
 
nee in diesem fall ist es die extensions.tsblcr in /etc/asterisk/lcr/

ersetze:
exten => pstn,10,Dial(${PSTNTRUNK}${CBC}${ARG1},,Tt${ROPT})
durch
exten => pstn,10,Dial(${PSTNTRUNK}0${CBC}${ARG1},,Tt${ROPT})
 
Herzlichen Dank!!!

Hallo allesOK,

es geht!!! Ich wollte mich nur nochmal recht herzlich bei Dir bedanken.

Grüße
Klaus
 
na das freut mich dann ja ;-)
 
Hallo allesOK, jetzt muss ich Dich nochmal nerven.

Zwei Probleme hab ich jetzt noch:

1. Wenn ich die Datei tsblcr.routing über das Webinterface erstelle passt alles. Wenn ich dann aber ein update mache, schreibt er mir immer sipgate mit rein. Ich habe zwar einen sipgate Account aber der ist nicht aufgeladen und nur zum reintelefonieren oder für Gespräche mit anderen sipgate Teilnehmern gedacht. Ich hab schonmal die checksip.agi umbenannt nach checksip.agi_xx. Brachte auch keinen Erfolg.
Evtl. müßte man vor dem Wählen über das Makro noch eine ENUM abfrage machen und wenn dann ein sipgate account als Antwort kommt über sipgate rauswählen? Was meinst Du dazu?

2. Das eigentlich größere Problem. Wenn ich eine Mobilfunknummer anwähle, in meinem Fall D1, klingelt das Handy 1-2 mal und Schluss. In der Asterisk Console kreig ich dann:
Code:
    -- Executing Macro("SIP/12-a73a", "tsblcr|017563XXXXX|/etc/asterisk/lcr/tsblcr.routing|109|ICH|mISDN/g:TE/|/etc/asterisk/sip.conf") in new stack
    -- Executing SetVar("SIP/12-a73a", "RESTART=0") in new stack
    -- Executing SetVar("SIP/12-a73a", "ROPT=") in new stack
    -- Executing GotoIf("SIP/12-a73a", "1?9") in new stack
    -- Goto (macro-tsblcr,s,9)
    -- Executing SetLanguage("SIP/12-a73a", "de") in new stack
    -- Executing Goto("SIP/12-a73a", "dial|1") in new stack
    -- Goto (macro-tsblcr,dial,1)
    -- Executing AGI("SIP/12-a73a", "tsblcr.agi|/etc/asterisk/lcr/tsblcr.routing|017563XXXXX") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/tsblcr.agi
  tsblcr.agi|/etc/asterisk/lcr/tsblcr.routing|017563XXXXX: Started routing for 017563XXXXX
  tsblcr.agi|/etc/asterisk/lcr/tsblcr.routing|017563XXXXX: Result=01039 01039 01039 01078 01078 01078 preselection
    -- AGI Script tsblcr.agi completed, returning 0
    -- Executing GotoIf("SIP/12-a73a", "0?disabled|1") in new stack
    -- Executing SetVar("SIP/12-a73a", "IT=0") in new stack
    -- Executing SetVar("SIP/12-a73a", "IT=1") in new stack
    -- Executing Cut("SIP/12-a73a", "CBC=TSBLCRROUTING| |1") in new stack
    -- Executing GotoIf("SIP/12-a73a", "0?end|1") in new stack
    -- Executing GotoIf("SIP/12-a73a", "0?sip|1:pstn|1") in new stack
    -- Goto (macro-tsblcr,pstn,1)
    -- Executing SetCIDNum("SIP/12-a73a", "109") in new stack
    -- Executing SetCIDName("SIP/12-a73a", "ICH") in new stack
    -- Executing GotoIf("SIP/12-a73a", "0?4:6") in new stack
    -- Goto (macro-tsblcr,pstn,6)
    -- Executing SetVar("SIP/12-a73a", "PSTNTRUNK=mISDN/g:TE//") in new stack
    -- Executing GotoIf("SIP/12-a73a", "0? 20 : 10") in new stack
    -- Goto (macro-tsblcr,pstn,10)
    -- Executing Dial("SIP/12-a73a", "mISDN/g:TE//001039017563XXXXX||Tt") in new stack
* Sends Group Call Ind. group: TE
    -- Called g:TE//001039017563XXXXX
  == No one is available to answer at this time
    -- Executing Goto("SIP/12-a73a", "ds-NOANSWER|1") in new stack
    -- Goto (macro-tsblcr,ds-NOANSWER,1)
    -- Executing Goto("SIP/12-a73a", "end|1") in new stack
    -- Goto (macro-tsblcr,end,1)
    -- Executing GotoIf("SIP/12-a73a", "0?10") in new stack
    -- Executing Congestion("SIP/12-a73a", "") in new stack
  == Spawn extension (macro-tsblcr, end, 2) exited non-zero on 'SIP/12-a73a' in macro 'tsblcr'
  == Spawn extension (default, 017563XXXXX, 1) exited non-zero on 'SIP/12-a73a'

Er hat vorher immer einen anderen Provider genommen (01038). Ich dachte, evtl. liegts an dem. Aber den hab ich rausgenommen, trotzdem klingelt das Handy nur 1-2 mal. Seltsam oder?
Wie Du weißt hänge ich ja an einer Telefonanlage mit der *, wenn ich von einm Systemtelefon die Nummer 01039017563XXXXX wähle klingelt das Handy normal oft.

Versteht das jemand?

Grüße
Klaus
 
1) du musst, das konfig-file runterladen uns als parameter an das update skript mitgeben (also die vorhandene konfig-datei .cfg ersetzen). klar, enum usw. koennte man alles noch einbauen. ich hab an sowas auch schon gedacht, aber noch nicht umgesetzt.

2) zu zweitem problem kann ich leider nicht viel sagen. evtl. liegt es an mISDN. das habe ich nicht im einsatz, also kenne ich mich da nicht so gut aus.
 
[s:9fa6026d02]*Achtung*

Telefonsparbuch hat was an seiner Konfiguration geändert.
Unsere bisherigen Config Files gelten nicht mehr.
Das komplette Routing ist verdreht (Zonen und Provider total durcheinandergewürfelt).

Überprüft mal euer Routing.

alt:
Code:
LCR_CONFIG=tr&es%09ho%09cr%09g%09az%09ec%09ic%09bz%09ff%09dw%09cf%09v%09em%09gs%09bk%09de%09b%09gq%09eh%09gr%09ea%09ga%09hy%09ew%09ep%09bt%09at%09f%09bi%09hx%09bg%09n%09gp%09ca%09bq%09fh%09fg%09bl%09hh&S_hv&1Xnet_Business&FALLBACK_TARIFF&cheap&WELT_NETZ&2&WEEKEND_DISABLED&1&LCR_SEC_OFF&2%093&SHOW_PRICE&A&S_hs&PURtel_Premium&S_fz&nikotel_SIP&FALLBACK_RETRY2&5&S_hi&blueSIP_Premium&LCR_CALCULATE&EXT&CONNECT&ISDN&S_ga&sipgate&XXL&0&p1&ISDN&S_hz&freenet_iPhone%20Plus&p4&ISDN&LCR_SEC_ZONES&e&LCR_P&0&S_hk&Sipsnip_basic&%2B%2BSTORE&pB1%09pTB5%09S_hv%09pB5%09pT5%09S_hs%09S_fz%09S_hi%09p1%09S_ga%09p4%09S_hz%09pT2%09pTB3%09pT4%09S_hk%09pB3%09p5%09S_hp%09S_hm%09S_hy%09pTB2%09pB4%09S_hq%09pTB1%09S_hr%09S_hu%09pT3%09S_hj%09pB2%09p2%09pT1%09p3%09pTB4&p5&ISDN&zone&sp%09il%09a%09vl%09ru%09d%09on%09qe%09so%09e%09br%09om%09vm%09rv%09fi%09fj%09qf%09gn%09lr%09pa%09gm%09lq%09pb%09ik%09bq%09vs&S_hp&web.de_FreePhone%20Club&S_hm&Sipsnip_plus&S_hy&gmx&LCR_SEC_PRICE&1.5&LCR_TARIF_NAME&A_T&WELT_TARIFF&az&TKANLAGE_BASE&Asterisk&WELT_AUTO&1&tro&g%09ec%09dw%09em%09b%09bt%09hx%09bg%09ib%09n%09gp%09ca%09bq&VORWAHL&0681&LCR_MAX_TARIFFS&101&S_hq&1Xnet_Standard&PULSE_EXTRA_CHOICE&60%2F60&CBC_A&0&S_hr&1Xnet_Fun&IVORWAHL&0049&S_hu&PURtel_FreePhone&FALLBACK_RETRY&7&pMAX&5&PULSE_EXTRA&1&S_hj&web.de_FreePhone&FALLBACK&Ja&p2&ISDN&WELT&EU_W&FALLBACK_TARIFF2&preselect&p3&ISDN&pBMAX&5&CBC_A_PRICE&1.01; path=/tmpl/calc/telephone/lcr/;id=418e84cf44309b4006f880dc60bb3623;s=f85d437c276aa4577969724af0da533a

neu:
Code:
LCR_CONFIG=S_ad&sipgate&S_bl&freenet_iPhone%20Plus&S_h&Sipsnip_basic&tr&db%09ba%09da%09j%09ag%09cx%09cc%09g%09az%09co%09t%09e%09dc%09cf%09dd%09ab%09bk%09b%09cs%09dl%09w%09bp%09dm%09ao%09cl%09af%09dh%09ct%09ad%09bh%09bn%09bt%09f%09cd%09n%09cp%09cm%09ar%09l%09an%09o&S_u&1Xnet_Standard&FALLBACK_TARIFF&cheap&WELT_NETZ&2&WEEKEND_DISABLED&1&LCR_SEC_OFF&1&S_y&1Xnet_Fun&S_m&blueSIP_Premium&FALLBACK_RETRY2&7&LCR_CALCULATE&EXT&CONNECT&ISDN&S_aa&PURtel_Premium&XXL&0&S_at&web.de_FreePhone%20Club&S_bf&Sipsnip_plus&LCR_SEC_ZONES&e&S_cb&web.de_FreePhone&LCR_P&0&%2B%2BSTORE&S_bl%09S_ad%09S_h%09pB1%09pTB5%09S_u%09pB5%09S_y%09pT5%09S_m%09S_aa%09p1%09p4%09pT2%09pTB3%09S_at%09S_bf%09S_cb%09pT4%09pB3%09p5%09pTB2%09S_cj%09S_dc%09S_cu%09pB4%09pTB1%09pT3%09pB2%09p2%09S_cw%09pT1%09p3%09pTB4&zone&a%09ph%09d%09po%09ta%09fi%09bv%09c%09gn%09sd%09bu%09ii%09vq%09pg%09gm%09sz%09pn%09vp%09se%09fh%09ij&LCR_SEC_PRICE&2&LCR_TARIF_NAME&A_T&WELT_TARIFF&bt&S_cj&PURtel_FreePhone&S_dc&gmx&TKANLAGE_BASE&Asterisk&S_cu&nikotel_SIP&WELT_AUTO&1&tro&db%09da%09j%09t%09cf%09b%09cs%09dm%09bp%09dh%09f%09cd%09cp&VORWAHL&0681&LCR_MAX_TARIFFS&101&PULSE_EXTRA_CHOICE&60%2F60&CBC_A&0&IVORWAHL&0049&FALLBACK_RETRY&7&pMAX&5&PULSE_EXTRA&1&FALLBACK&Ja&S_cw&1Xnet_Business&WELT&EU_W&FALLBACK_TARIFF2&preselect&pBMAX&5&CBC_A_PRICE&1.01; path=/tmpl/calc/telephone/lcr/;id=418e84cf44309b4006f880dc60bb3623;s=95ef47dee763f44f60d902b70f038a8a

Gruß
Matthias[/s:9fa6026d02]

*SOLVED*
 
danke fuer den hinweis
 

Statistik des Forums

Themen
246,100
Beiträge
2,246,177
Mitglieder
373,582
Neuestes Mitglied
Achim17
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.