On Tue, 2004-12-21 at 00:59, Craig Guy wrote:
> Telstra Onramp use a 9 digit callerid.  I use the following macro to
> 'correct' incoming callerid so that numbers are in the proper format to
> callback from the callerid memory of the phone:
> 
> exten => s,1,GotoIf($["${ARG1}" = ""]?100:2)                    ;Check for
> null callerid and jump to 100 if so, else 2
> exten => s,2,GotoIf($[${ARG1:0:1} : 2|3|4|7]?110:3)           ;Match a known
> state or mobile prefix and jump to 110, else 3
> exten => s,3,SetCIDNum(${ARG1:1})                                ;Else
> assume local (8 prefix), strip area code to present 8 digit local no.
> exten => s,100,SetCIDNum(00000000)                               ;If null
> callerid then set '00000000'

All looks good up until here...

Note, your phone will end up dialling 00000000 which depending on your
equipment may well be interpreted as 000 and be routed to emergency...

Probably something you don't want!

IMHO, try setting it to 342 or whatever, which perhaps is an internal
extension that does a playback "There was no callerid information
available for this call" hangup.

Regards,
Adam



_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to