[SR-Users] Caller ID number being passed to Gateway

Joel White joelewhite at gmail.com
Mon Apr 21 20:33:05 CEST 2014


Thank you Daniel

It looks to be the result I was after.  Thank you again


On Mon, Apr 14, 2014 at 11:25 AM, Daniel Tryba <daniel at pocos.nl> wrote:

> On Monday 14 April 2014 16:02:10 Joel E White wrote:
> > Thank you Daniel
> >
> > I will try this tonight.
> >
>
> BTW I just thought about the fact that is the username is empty in the from
> this doesn't work (there is no @ in those URI). I have 2 cases:
>
> $avp(from)=$fu;
> if($fU==$null)
> {
>         avp_subst("$avp(from)", "/sip:/sip:$avp(src_callerid)@/");
> }
> else
> {
>         avp_subst("$avp(from)", "/sip:.*@/sip:$avp(src_callerid)@/");
> }
>
> uac_replace_from(...
>
> --
>
> POCOS B.V. - Croy 9c - 5653 LC Eindhoven
> Telefoon: 040 293 8661 - Fax: 040 293 8658
> http://www.pocos.nl/   - http://www.sipo.nl/
> K.v.K. Eindhoven 17097024
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140421/ced5aa27/attachment.html>


More information about the sr-users mailing list