[erledigt] Asterisk & Sipdiscount.com

snyfer

Neuer User
Mitglied seit
19 Apr 2006
Beiträge
15
Punkte für Reaktionen
0
Punkte
0
Hallo!

Also ich verstehe die Welt nicht mehr - mein Dialouttrunk funktioniert
ohne Probleme mit sipsnip.com (jetzt bellshare.com)
aber sobald ich den sipdiscount.com trunk anlege und darüber hinauswählen möchte kommt immer folgender Fehler im Asterisk:

Jun 8 21:26:26 WARNING[15402]: ast_expr2.fl:183 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
= 0
^
Jun 8 21:26:26 WARNING[15402]: ast_expr2.fl:187 ast_yyerror: If you have questions, please refer to doc/README.variables in the asterisk source.



Und das obwohl nichts geändert wurde ausser folgender Teil hinzu in der sip.conf und folgende Änderung in der outbound.include

sip.conf:
[pxout]
type=peer
username=pXXXX
fromuser=pXXXX
fromdomain=sip1.sipdiscount.com
secret=XXXXXXXXX
host=sip1.sipdiscount.com
dtmfmode=inband
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
allow=ilbc
canreinvite=yes
qualify=1200

outbound.conf:

exten => _${DIALOUT}${INTERNATIONAL-PREFIX}.,1,Macro(tl-dialout-1-trunk,60,SIP/pxout,'',0,'') ; International preceded by ${DIALOUT} prefix


Habt ihr Ideen ?

DANKEE

Lg
snyfer
 
Zuletzt bearbeitet:
besser so:

canreinvite=no

oder soll asterisk an ein sip-Endgerät die Kontrolle komplett abgeben (dann müssen auch die entsprechenden rtp-ports zu diesem Gerät offen sein ebenso sip 5060)

qualify=no

Was ist der Inhalt dieses macros (tl-dialout-1-trunk)?
 
Leider haben die qualify und canreinvite Änderungen keine Auswirkungen,
hier mal das Script:

[macro-tl-dialout-1-trunk]
exten => s,1,Set(DIALED_NUMBER=${MACRO_EXTEN})
exten => s,2,Macro(tl-dialout-base,${ARG1},${ARG2},${ARG3},${ARG4},${ARG5})

[macro-tl-dialout-base]
; first argument is the timeout, second is the first trunk
exten => s,1,Set(i=2)
exten => s,2,Goto(onetrunk,1)

exten => onetrunk,1,Set(FULLNAME=${ARG${i}})
exten => onetrunk,2,Cut(TRUNK=FULLNAME,/,2)
exten => onetrunk,3,GotoIf($[${LEN(${TRUNK})} = 0]?failed,1)
exten => onetrunk,4,Set(TRUNK_STATUS=${TRUNK_STATUS_${TRUNK}})
exten => onetrunk,5,GotoIf($[${TRUNK_STATUS} = '0']?next|1)

exten => onetrunk,6,Set(ROUTE_PREPEND=${ARG$[${i} + 1]})
exten => onetrunk,7,Set(ROUTE_STRIP=${ARG$[${i} + 2]})
exten => onetrunk,8,Set(ROUTE_OPTIONS=${ARG$[${i} + 3]})
exten => onetrunk,9,Set(NUMBER_TO_DIAL=${ROUTE_PREPEND}${DIALED_NUMBER:${ROUTE_STRIP}})
exten => onetrunk,10,Set(TRUNK_DIALSTRING=${TRUNK_DIALSTRING_${TRUNK}})
exten => onetrunk,11,Set(TRUNK_NAME=${TRUNK_NAME_${TRUNK}})
exten => onetrunk,12,Set(TRUNK_PROTOCOL=${TRUNK_PROTOCOL_${TRUNK}})
exten => onetrunk,13,Set(TRUNK_STRIP=${TRUNK_STRIP_${TRUNK}})
exten => onetrunk,14,Set(TRUNK_PREPEND=${TRUNK_PREPEND_${TRUNK}})
exten => onetrunk,15,GotoIf($["${TRUNK_DIALSTRING}" != ""]?dial-CUSTOM|1)
exten => onetrunk,16,Goto(dial-${TRUNK_PROTOCOL},1)

;;SIP
exten => dial-SIP,1,GotoIf($["${ROUTE_OPTIONS}" = ""]?dial-SIP|4)
exten => dial-SIP,2,Dial(SIP/${TRUNK_PREPEND}${NUMBER_TO_DIAL:${TRUNK_STRIP}}@${TRUNK_NAME},${ARG1},${ROUTE_OPTIONS}M(screening)dtTwWom(unbuffered)hH)
exten => dial-SIP,3,Goto(dial-${DIALSTATUS},1)
exten => dial-SIP,4,GotoIf($["${ARG1}" = ""]?dial-SIP|7)
exten => dial-SIP,5,Dial(SIP/${TRUNK_PREPEND}${NUMBER_TO_DIAL:${TRUNK_STRIP}}@${TRUNK_NAME},${ARG1},M(screening)dtTwWom(unbuffered)hH)
exten => dial-SIP,6,Goto(dial-${DIALSTATUS},1)
exten => dial-SIP,7,Dial(SIP/${TRUNK_PREPEND}${NUMBER_TO_DIAL:${TRUNK_STRIP}}@${TRUNK_NAME},,M(screening)dtTwWom(unbuffered)hH)
exten => dial-SIP,8,Goto(dial-${DIALSTATUS},1)



Es muss ja anscheinend eher an einem Syntax Fehler liegen?
Komisch ist ja nur dass es kein Problem ist wenn wenn ich den sipsnip Trunk verwende ...

Lg,
snyfer
 
snyfer schrieb:
Es muss ja anscheinend eher an einem Syntax Fehler liegen?

oder an einer Variable wo das falsche drin steht.

Bei einem entsprechenden log level sieht man in der Console ganz genau bei welcher Zeile dieser Fehler auftritt.

In welcher Zeile tritt der Fehler auf und was steht in den dort benutzen Variablen?
 
hmm ...

sorry die frage aber wie setz ich den debug level so das er diese
info ausspuckt weil set debug 10 gibt mal nicht mehr aus!

lg,
snyfer
 
log level in der asterisk.conf auf z.B. 6 reicht.

debug level brauchst Du dafür gar nicht.
 
wo kommen eigentlich die ganzen sinnlosen Leerzeichen in den von Dir hier wiedergegebenen Macros her? Stehen die wirklich in Deinem Dialplan?

Code:
exten => onetrunk,9,Set(NUMBER_TO_DIAL=${ROUTE_PREPEND}${DI[COLOR="Red"]?[/COLOR]ALED_NUMBER:${ROUTE_STRIP}})
exten => onetrunk,10,Set(TRUNK_DIALSTRING=${TRUNK_DIALSTRIN[COLOR="Red"]?[/COLOR]G_${TRUNK}})
exten => onetrunk,11,Set(TRUNK_NAME=${TRUNK_NAME_${TRUNK}})
exten => onetrunk,12,Set(TRUNK_PROTOCOL=${TRUNK_PROTOCOL_${ TRUNK}})
exten => onetrunk,13,Set(TRUNK_STRIP=${TRUNK_STRIP_${TRUNK} })
exten => onetrunk,14,Set(TRUNK_PREPEND=${TRUNK_PREPEND_${TR[COLOR="Red"]?[/COLOR]UNK}})
 
hallo betateilchen!

nein sind anscheinend nur durchs reinkopieren passiert :/ ...
 
Mehr als die Zeilen stehen nicht im logfile drinnen?
obwohl in der asterisk.conf jetzt debug = 7 steht ? ...

Jun 9 17:17:12 WARNING[20715] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
= 0
^
Jun 9 17:17:12 WARNING[20715] ast_expr2.fl: If you have questions, please refer to doc/README.variables in the asterisk source.
 
Kostenlos!

Statistik des Forums

Themen
248,887
Beiträge
2,303,973
Mitglieder
378,565
Neuestes Mitglied
BenGradish