Yate Community Forum
Yate server => Other Yate server issues => Topic started by: arts111199 on January 11, 2014, 01:01:11 PM
-
Hi
Can you help me how to add user=phone in SIP invite in regexroute.conf
-
Check
http://yate.null.ro/pmwiki/index.php?n=Main.RegularExpressions
http://docs.yate.ro/wiki/Regular_expressions
http://docs.yate.ro/wiki/Routing_tips_from_various_users
just add it
-
With the help of
osip_To=<sip:${called}@${domain};user=phone> system understands ";" as the end of the line.
-
Use chr regexroute function (see regexroute.conf.sample for more...):
osip_To=<sip:${called}@${domain}$(chr,59)user=phone>
-
hi marian,
we can also add or modify during the "register" in case of a custom login?
-
Thank you
-
Hi Doug,
I don't understand your question.
-
hi marian,
sorry, the question is: can we add parameters to the contact, add new headers or modify, such as the user-agent, in sip register for logging into an external gateway/server.
what is the most correct way to do it?
regards, doug
-
It not possible to add custom sip headers to REGISTER or add contact parameters.
You can change user agent from ysipchan.conf for all SIP methods.
-
Marian,
If you have a plan for the introduction of such a possibility, it would be wonderful.
I also want to insert in the registration flow in the message something like :
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.133.3:5060;rport=5060;branch=z9hG4bK828309744
Contact: <sip:1037954576@192.168.133.3:5060;transport=UDP>;expires=300
To: <sip:1037954576@voice.com>;tag=5e67d836
From: <sip:1037954576@voice.com>;tag=160205178
Call-ID: 3450048@voice.com
CSeq: 12138 REGISTER
Date: Wed, 25 Jan 2004 01:02:56 GMT
YateBilling: available-funds:0.69019 currency:BTC
Content-Length: 0
...as the main operators :)
-
You can ask Diana for features.
It is possible to add custom sip headers in REGISTER response:
Just handle user.register message and add them with 'osip_' prefix!
-
Thanks, Marian!
I made it!