SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Nov 26, 2009 - 10:21 AM Reply with quote Back to top
hello,

when a phone do a transfer because busy, it have to answer a 302 with diversion.
I need that if there are no diversion, kamailio insert diversion in the onreply_route[x].

but I have this error: Command cannot be used in the block


I juste do it:
Code:

onreply_route[1] {
 if(t_check_status("302")) {
  add_diversion("user-busy");
 }
}


please help me
View user's profile Send private message MSN Messenger
anomarmeOffline



Joined: Jul 14, 2005
Posts: 75

Status: Offline
Posted: Nov 27, 2009 - 12:44 PM Reply with quote Back to top
Look at textops module, function append_hf(). You can add the diversion header with that function.
http://www.kamailio.org/docs/modules/3. ... #id2494866
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.