[Serusers] add prefix to source

Jai Rangi jprangi at gmail.com
Fri Jun 29 00:40:43 CEST 2007


You can try something like this just before completing the call
Say you want to add 4 to the from_uri 555555555

 append_rpid_hf("<sip:4", "@domainname>");

Hope this will help.

-Jai

On 6/28/07, Szasz Szabolcs <sszasz at digicomm.ro> wrote:
>
>  Thank you for your ansver.
>
> How should I use this function? I didn't found sufficient documentation
> for this.
>
> can you give an axemple?
>
> Szabolcs
>
> ----- Original Message -----
> *From:* Jai Rangi <jprangi at gmail.com>
> *To:* Edson <4lists at gmail.com>
> *Cc:* Szasz Szabolcs <sszasz at digicomm.ro> ; SIP <sip at arcdiv.com> ;
> serusers at lists.iptel.org
> *Sent:* Monday, June 25, 2007 6:33 PM
> *Subject:* Re: [Serusers] add prefix to source
>
> You can use append_rpid_hf
> That way you can add add suffix or prefix in the from URI without breaking
> RFC. Most of major service provider user rpid to recognize the caller IDs.
> Hope this will help.
>
> -Jai
>
>
>
>
> On 6/25/07, Edson <4lists at gmail.com> wrote:
> >
> > You can use the subst(), but I'm not sure if this wouldn't break RFCs...
> >
> > Edson
> >
> > >-----Original Message-----
> > >From: serusers-bounces at lists.iptel.org
> > <serusers-bounces at lists.iptel.org+>[mailto:serusers-
> > >bounces at lists.iptel.org] On Behalf Of Szasz Szabolcs
> > >Sent: segunda-feira, 25 de junho de 2007 08:23
> > >To: SIP
> > >Cc: serusers at lists.iptel.org
> > >Subject: Re: [Serusers] add prefix to source
> > >
> > >The user part of the uri will be the caller-id in my configuration. I
> > would
> > >like to add an 5 as prefix to the from_uris user part when I make
> > outgoing
> > >PSTN calls.
> > >
> > >----- Original Message -----
> > >From: "SIP" <sip at arcdiv.com >
> > >To: "Szasz Szabolcs" <sszasz at digicomm.ro>
> > >Cc: <serusers at lists.iptel.org>
> > >Sent: Monday, June 25, 2007 2:15 PM
> > >Subject: Re: [Serusers] add prefix to source
> > >
> > >
> > >> Okay... I'm a bit confused.  What part of the from URI do you
> > consider a
> > >> 'prefix' ?
> > >>
> > >> N.
> > >>
> > >>
> > >> Szasz Szabolcs wrote:
> > >>>  Hi!
> > >>>  I know the prefix() and the strip() functions, but how can I change
> > the
> > >>>  from_uri (caller)?
> > >>>
> > >>>  Thanks for the help.
> > >>>
> > >>>> ----- Original Message -----
> > >>>> From: "SIP" <sip at arcdiv.com>
> > >>>> To: "Szasz Szabolcs" < sszasz at digicomm.ro>
> > >>>> Sent: Monday, June 25, 2007 12:34 AM
> > >>>> Subject: Re: [Serusers] add prefix to source
> > >>>>
> > >>>>
> > >>>>
> > >>>>> Use the prefix() function.
> > >>>>>
> > >>>>> i.e. to add the prefix 555 onto the beginning of a URI,
> > >>>>>
> > >>>>> prefix("555");
> > >>>>>
> > >>>>> N.
> > >>>>>
> > >>>>>
> > >>>>> Szasz Szabolcs wrote:
> > >>>>>
> > >>>>>> Hi all
> > >>>>>>  I need to add a prefix to the source uri/number.
> > >>>>>>  How ca I do this? Can you help me guys?
> > >>>>>>  Thanks a lot
> > >>>>>>  Szasz Szabolcs
> > >>>>>>
> > ---------------------------------------------------------------------
> > >---
> > >>>>>>
> > >>>>>> _______________________________________________
> > >>>>>> Serusers mailing list
> > >>>>>> Serusers at lists.iptel.org
> > >>>>>> http://lists.iptel.org/mailman/listinfo/serusers
> > >>>>>>
> > >>>>>
> > >>>>> --
> > >>>>> This message was scanned for spam and viruses by BitDefender.
> > >>>>> For more information please visit http://linux.bitdefender.com/
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> This message was scanned for spam and viruses by BitDefender.
> > >> For more information please visit http://linux.bitdefender.com/
> > >>
> > >>
> > >
> > >
> > >
> > >--
> > >This message was scanned for spam and viruses by BitDefender.
> > >For more information please visit http://linux.bitdefender.com/
> > >
> > >
> > >_______________________________________________
> > >Serusers mailing list
> > > Serusers at lists.iptel.org
> > >http://lists.iptel.org/mailman/listinfo/serusers
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
>
>  ------------------------------
>
>
> --
> This message was scanned for spam and viruses by BitDefender.
> For more information please visit http://linux.bitdefender.com/
>
>
>
> --
> This message was scanned for spam and viruses by BitDefender.
> For more information please visit http://linux.bitdefender.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20070628/e9fd754c/attachment.htm>


More information about the sr-users mailing list