[Kamailio-Users] presence_dialoginfo context

David kamailio.org at spam.lublink.net
Thu Aug 13 15:23:09 CEST 2009


Hey,

For those wondering :

I do the following command :
 
$tU = number dialed
mycooldomain.tld is my domain
$avp(s:group) = the group name ( group1, group2 or group3 ).

<code>
avp_printf("$ru", "sip:$avp(s:group).$tU at mycooldomain.tld");
</code>

I only do this for invites, I do a t_relay and I believe that everything 
else gets caught up in loose_route.

I will try this for subscribe and see what happens.

David


Klaus Darilion wrote:
> dlublink wrote:
>> Hello,
>>
>> I have three different groups of extensions on my kamailio I want to 
>> be able to separate them, so I prefixed a name to the extensions, so 
>> I have :
>>
>> 1. group1.101
>> 2. group1.102
>> 3. group2.101
>> 4. group2.102
>> 5. group3.102
>> 6. group3.103.
>>
>> The phones from different groups can not call each other, I found a 
>> pseudo variable that I use to rewrite the destination url, so if user 
>> group1.101 dials 102 I rewrite it to group1.102.
>>
>> I want to do the same thing for presence_dialog info, how can I 
>> rewrite the subscribe, presence and and notify messages to append the 
>> appropriate prefix ?
>
> Just apply the same rewrite you have already done for the INVITE also 
> for the SUBSCRIBE
>
> regards
> klaus
>
>>
>> Thanks,
>>
>> David
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list