I am not sure if it works in all situations, but I was able to get the actual dialed number information from the SIP header using the following command:
exten => s,1,NoOp(${SIP_HEADER(TO)})
222
333Substrings
by jlewis, Monday 09 of January, 2006 [20:24:57 UTC]
Under Asterisk 1.0.x, substrings of the first N chars could be represented as ${variable::N}.
Under Asterisk 1.2.x, such substrings must be represented as ${variable:0:N}.
Please anybody who ever seen a response from one Asterisk server back to Asterisk Outbound -saying G730 protocol not allowed
We use a Asterisk trixbox sip platform to route calls to another Asterisk server overseas G729 and sometimes the calls dont go
Sometimes the receiving server do not even see the hits -some other time the error message is -Forbidden.
...
Hi all,
I'm having trouble getting a timeout function to work in my asterisk 1.4.21.2 IVR extension configuration. The introduction and greeting playback OK and the invalid digit playback works OK.
But, while waiting for timeout to be routed to operator I receive the following debug message.
...
Comments
333Alternate for DNID function
exten => s,1,NoOp(${SIP_HEADER(TO)})
333Substrings
Under Asterisk 1.2.x, such substrings must be represented as ${variable:0:N}.