Hi all!
Noob question that needs advanced help.
One of my providers will reject calls if valid US callerid is not presented to them.
I need to find a way to have openSER rewrite bad callerid info. ( If the user sends valid callerID I would like to preserver that) To keep it simple.. I would want to rewrite any callerid that is less than 10 digits. Could someone point me in the right directions?
TIA!
Cheers,
Hi Zac,
Does your provider support remote-party-id? if so,
you could do something like :
if(search("From:[0-9]{10}@.*"){ append_rpid("",";privacy=full.. etc"); };
or just change append_rpid with a simple append_hf("remote-party-id:sip:1234567890@your.domain.com;...");
-Atle
* Zac Amsler zamsler@netiqsys.net [060919 09:59]:
Hi all!
Noob question that needs advanced help.
One of my providers will reject calls if valid US callerid is not presented to them.
I need to find a way to have openSER rewrite bad callerid info. ( If the user sends valid callerID I would like to preserver that) To keep it simple.. I would want to rewrite any callerid that is less than 10 digits. Could someone point me in the right directions?
TIA!
Cheers,
Zac Amsler, Network Operations NetIQ Systems, LLC www.netiqsys.net http://www.netiqsys.net
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
I do not believe that they do.
Would the subst function work? If so. what would it look like? (I am no good at regex :( )
Thanks for you help
Cheers,
Better look at uac module, because changing the From header has other implications in dialog matching.
http://www.openser.org/docs/modules/1.1.x/uac.html
Cheers, Daniel
On 09/19/06 11:44, Zac Amsler wrote:
I do not believe that they do.
Would the subst function work? If so. what would it look like? (I am no good at regex :( )
Thanks for you help
Cheers,