Displaying 4 results from an estimated 4 matches for "__sipfromuser".
2015 Jun 26
2
Asterisk dialplan best practices syntax
Hi,
I've two yocto questions about the syntax of dialplan:
1. What's the "official" notation of each line: "=>" or "=" ? In the wiki
of Asterisk, I see very often "=>", however, what's the reason for both
syntaxes authorized ? Historical ?
2. To write info in logs/console, you have two commands: NoOp and Verbose.
Verbose seems to be
2015 Jun 26
0
Asterisk dialplan best practices syntax
...]?fn-CONGESTION,1)
same => n,Set(TIMEOUT(absolute)=10800)
same => n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,freenum.org)})
same => n,GotoIf($["${isnresult}" != ""]?from)
same => n,Set(DIALSTATUS=CONGESTION)
same => n,Goto(fn-CONGESTION,1)
same => n(from),Set(__SIPFROMUSER=${CALLERID(num)})
same => n,GotoIf($["${GLOBAL(FREENUMDOMAIN)}" = ""]?dial)
same => n,Set(__SIPFROMDOMAIN=${GLOBAL(FREENUMDOMAIN)})
same => n(dial),Dial(SIP/${isnresult},40)
same => n,Goto(fn-${DIALSTATUS},1)
exten => fn-BUSY,1,Busy()
exten => _f[n]-.,1,NoOp(...
2015 Jun 28
2
Asterisk dialplan best practices syntax
...> n,Set(TIMEOUT(absolute)=10800)
> same => n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,freenum.org)})
> same => n,GotoIf($["${isnresult}" != ""]?from)
> same => n,Set(DIALSTATUS=CONGESTION)
> same => n,Goto(fn-CONGESTION,1)
> same => n(from),Set(__SIPFROMUSER=${CALLERID(num)})
> same => n,GotoIf($["${GLOBAL(FREENUMDOMAIN)}" = ""]?dial)
> same => n,Set(__SIPFROMDOMAIN=${GLOBAL(FREENUMDOMAIN)})
> same => n(dial),Dial(SIP/${isnresult},40)
> same => n,Goto(fn-${DIALSTATUS},1)
>
> exten => fn-BUSY,1,Busy()...
2014 Feb 18
1
Dynamically setting from domain when calling friends
Hello
I have a problem where I would like to be able to send an arbitrary SIP
domain when sending a call to a registered friend. By default the from
domain is set to the IP of the Asterisk server, but I would like to set it
to something else.
The case is that when a call from a foreign domain comes in to the Asterisk,
it will connect it to the callee (but with the domain changed). When