[SR-Users] add fromuser to sip request

JR Richardson jmr.richardson at gmail.com
Wed Oct 6 18:55:09 CEST 2010


>> Hi Alex.  I use a general context in asterisk to route calls already
>> and wanted to get away from pattern matches.  I'm using asterisk
>> realtime and want to decrease the load.  I'll play around with the
>> 'uac_replace_from()' and 'append_hf' to see what works best for me.
>
> Well, you don't have to use pattern matches.  :-)  You can always
> direct to fixed extensions, a la:
>
>    exten => moh,1,Answer
>    exten => moh,n,MusicOnHold
>    exten => moh,n,Hangup
>
> Those should be pretty snappy, even in realtime.
>
So the first thing I notice with using 'uac_replace_from()'  is the
caller ID number is replaced with the replaced value, so I guess this
is not what I need for my particular application.  I'll fool around
with the 'append_hf' and some pattern matches.

Thanks.

JR

-- 
JR Richardson
Engineering for the Masses



More information about the sr-users mailing list