[asterisk-users] context problem

Jeroen Eeuwes jeroeneeuwes at gmail.com
Thu Jan 20 10:23:51 CST 2011


Hi Jonas,

> What else can I try ?

Yeah, Asterisk always assumes that from 1 ip address there can only be
inbound number. Not very user-friendly.

I think I've used something like this:

exten => s,1,Set(CALL-TO=${SIP_HEADER(TO)})
exten => s,n,Set(CALL-FROM=${CALLERIDNUM})
exten => s,n,GotoIf($["${CALL-TO}" : ".*52525252.*"]?TRUNKin,52525252,1)
exten => s,n,GotoIf($["${CALL-TO}" : ".*59595959.*"]?TRUNKin,59595959,1)
exten => s,n,etcetera

Best regards,
Jeroen Eeuwes



More information about the asterisk-users mailing list