Hi, all!
Is there an easy possibility to get the Username of the P-Asserted-Identity header?
When i use $ai i get for example "sip:+4942317769999@testdomain.de". I need only "+4942317769999" in a variable.
I know for example that i can use $fU and get only the Username (and $fu gives me the whole From URI)....
Cheers,
Marco
Marco Bungalski GmbH
Traversale 5
27283 Verden
Telefon: +49 4231 - 776 9999
Fax: +49 4231 - 776 9998
Mobil: +49 172 4204774
e-mail: Marco@Bungalski.de
www.bungalski.de
www.t-m-net.de
Geschäftsführender Gesellschafter: Marco Bungalski
Sitz der Gesellschaft: D-27283 Verden, AG Walsrode HRB 120586
If it's not in this list ...
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x (substitute your version number)
... there is no built-in pseudo-variable for it.
On 02/19/2010 10:30 AM, Marco Bungalski wrote:
Hi, all!
Is there an easy possibility to get the Username of the P-Asserted-Identity header?
When i use $ai i get for example "sip:+4942317769999@testdomain.de". I need only "+4942317769999" in a variable.
I know for example that i can use $fU and get only the Username (and $fu gives me the whole From URI)....
Cheers,
Marco
Marco Bungalski GmbH
Traversale 5
27283 Verden
Telefon: +49 4231 - 776 9999
Fax: +49 4231 - 776 9998
Mobil: +49 172 4204774
e-mail: Marco@Bungalski.de
www.bungalski.de http://www.bungalski.de
www.t-m-net.de http://www.t-m-net.de
Geschäftsführender Gesellschafter: Marco Bungalski
Sitz der Gesellschaft: D-27283 Verden, AG Walsrode HRB 120586
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Alex Balashov wrote:
If it's not in this list ...
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x (substitute your version number)
... there is no built-in pseudo-variable for it.
On 02/19/2010 10:30 AM, Marco Bungalski wrote:
Hi, all!
Is there an easy possibility to get the Username of the P-Asserted-Identity header?
When i use $ai i get for example "sip:+4942317769999@testdomain.de". I need only "+4942317769999" in a variable.
Hello
Have you tried transformations ? (http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x)
For example $(ai{uri.user}) should do the trick
Marius
On 02/19/2010 10:45 AM, marius zbihlei wrote:
Hello
Have you tried transformations ? (http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x)
For example $(ai{uri.user}) should do the trick
Ah, that's true! Good call.