Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Rewriting Remote Party ID

Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
kawarod at laposte.net
Guest





PostPosted: Thu Mar 05, 2009 7:27 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Dear list,

I'd like to rewrite the number in the Remote Party ID header and only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Mar 05, 2009 7:31 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Well this depends on how you're placing the call.. if its a standard bridge you can on the A-Leg set "effective_caller_id_number=000${caller_id_number}" before you call bridge.

Is the from already in the correct format?


/b

On Mar 5, 2009, at 6:12 AM, rod wrote:
Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in this
example) in the RPID header :

From: Anonymous<[url=sip:anonymous@anonymous.invalid]sip:anonymous@anonymous.invalid[/url]>;tag=1208367
Remote-Party-ID:
<[url=sip:123456@10.10.10.10:5062;user=phone]sip:123456@10.10.10.10:5062;user=phone[/url]>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<[url=sip:anonymous@anonymous.invalid]sip:anonymous@anonymous.invalid[/url]>;tag=1208367
Remote-Party-ID:
<[url=sip:000123456@10.10.10.10:5062;user=phone]sip:000123456@10.10.10.10:5062;user=phone[/url]>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<[url=sip:anonymous@anonymous.invalid]sip:anonymous@anonymous.invalid[/url]>;tag=1208367
Remote-Party-ID:
<[url=sip:000123456@10.10.10.10:5062;user=phone]sip:000123456@10.10.10.10:5062;user=phone[/url]>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<[url=sip:anonymous@anonymous.invalid]sip:anonymous@anonymous.invalid[/url]>;tag=1208367
Remote-Party-ID:
<[url=sip:123456@10.10.10.10:5062;user=phone]sip:123456@10.10.10.10:5062;user=phone[/url]>;privacy=full;screen=yes;party=calling


regards.
Back to top
kawarod at laposte.net
Guest





PostPosted: Thu Mar 05, 2009 7:55 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:
Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:

Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.

------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kawarod at laposte.net
Guest





PostPosted: Thu Mar 05, 2009 8:14 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:
Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:

Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:


Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:000123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:123456@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.

------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
dujinfang at gmail.com
Guest





PostPosted: Thu Mar 05, 2009 9:31 pm    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:

Quote:
the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:
Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:

Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:


Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.

------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kawarod at laposte.net
Guest





PostPosted: Fri Mar 06, 2009 3:02 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

using these functions like this did nothing on the SIP INVITE packet :'(

seven wrote:
Quote:
try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:


Quote:
the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:

Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:


Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:



Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
dujinfang at gmail.com
Guest





PostPosted: Fri Mar 06, 2009 7:42 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

How about this?

bridge
({origination_caller_id_name
="your_name",origination_caller_id_number="0000"}sofia/b-leg)


On Mar 6, 2009, at 3:51 PM, rod wrote:

Quote:
using these functions like this did nothing on the SIP INVITE
packet :'(

seven wrote:
Quote:
try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:


Quote:
the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:

Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" <sip:
000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:


Quote:
Well this depends on how you're placing the call.. if its a
standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you
call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:



Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10
:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10
:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10
:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10
:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
dave at 3c.co.uk
Guest





PostPosted: Sat Mar 07, 2009 9:32 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Hi Rod,

You can set it directly:
<action application="set"><![CDATA[sip_h_Remote-Party-Identity="${caller_id_number}" [url=sip:{$caller_id_number}@1.2.3.4]<sip:{$caller_id_number}@1.2.3.4>[/url];screen=yes;privacy=off]]></action>
<action application="bridge" data="sofia/gateway/wherever/+$1"/>

--Dave

Quote:
Quote:
using these functions like this did nothing on the SIP INVITE packet :'(

seven wrote:
Quote:
try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:


Quote:
the A leg invite looks like this:
From: "Anonymous"[url=sip:anonymous@anonymous.invalid;user=phone]<sip:anonymous@anonymous.invalid;user=phone>[/url]

it has been rewritten like this:
From: "Anonymous" [url=sip:000000anonymous@172.29.0.5]<sip:000000anonymous@172.29.0.5>[/url]

rod

rod wrote:

Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" [url=sip:000000anonymous@172.29.0.5]<sip:000000anonymous@172.29.0.5>[/url];tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:


Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:



Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous[url=sip:anonymous@anonymous.invalid]<sip:anonymous@anonymous.invalid>[/url];tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous[url=sip:anonymous@anonymous.invalid]<sip:anonymous@anonymous.invalid>[/url];tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous[url=sip:anonymous@anonymous.invalid]<sip:anonymous@anonymous.invalid>[/url];tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous[url=sip:anonymous@anonymous.invalid]<sip:anonymous@anonymous.invalid>[/url];tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:


0
Back to top
kawarod at laposte.net
Guest





PostPosted: Mon Mar 09, 2009 2:09 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Hi David,

already tried this :p
the pbm is that this doesn' modify the RPID header, but it adds a new
one so that I have 2 RPID header in the SIP INVITE Sad

rod

David Knell wrote:
Quote:
Hi Rod,

You can set it directly:
<action
application="set"><![CDATA[sip_h_Remote-Party-Identity="${caller_id_number}"
<sip:{$caller_id_number}@1.2.3.4>;screen=yes;privacy=off]]></action>
<action application="bridge" data="sofia/gateway/wherever/+$1"/>

--Dave

Quote:
using these functions like this did nothing on the SIP INVITE packet :'(

seven wrote:

Quote:
try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:



Quote:
the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:


Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:



Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:




Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.



------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kawarod at laposte.net
Guest





PostPosted: Tue Mar 10, 2009 6:18 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Hi all,

it seems there is no way to do this Sad

It could be great to be able to:
- decide if RPID should be present or not in the B leg for an
outbound call
- make RPID header fully customizable with variables
- filter RPID for inbound call

I saw that kokoska rokoska created a jira bounty for 50$: Make RPID SIP
header optional

I'll add 150$ for this if I could manage RPID as described above.
Sorry to use mailing list for this, I'm unable to add a note on jira for
this bounty.

regards,
rod

rod wrote:
Quote:
Hi David,

already tried this :p
the pbm is that this doesn' modify the RPID header, but it adds a new
one so that I have 2 RPID header in the SIP INVITE Sad

rod

David Knell wrote:

Quote:
Hi Rod,

You can set it directly:
<action
application="set"><![CDATA[sip_h_Remote-Party-Identity="${caller_id_number}"
<sip:{$caller_id_number}@1.2.3.4>;screen=yes;privacy=off]]></action>
<action application="bridge" data="sofia/gateway/wherever/+$1"/>

--Dave


Quote:
using these functions like this did nothing on the SIP INVITE packet :'(

seven wrote:


Quote:
try
bridge
({effective_caller_id_name
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:




Quote:
the A leg invite looks like this:
From: "Anonymous"<sip:anonymous@anonymous.invalid;user=phone>

it has been rewritten like this:
From: "Anonymous" <sip:000000anonymous@172.29.0.5>

rod

rod wrote:



Quote:
Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I
get this:

From: "Anonymous" <sip:000000anonymous@172.29.0.5>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:




Quote:
Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:





Quote:
Dear list,

I'd like to rewrite the number in the Remote Party ID header and
only in
this header.

ex: I'd like to prefix the caller ID with a prefix code (000 in
this
example) in the RPID header :

From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
000123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling

should become:
From: Anonymous<sip:anonymous@anonymous.invalid>;tag=1208367
Remote-Party-ID:
<sip:
123456
@10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling


regards.




------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kokoska.rokoska at pos...
Guest





PostPosted: Tue Mar 10, 2009 6:38 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

rod napsal(a):
Quote:
Hi all,

it seems there is no way to do this Sad

It could be great to be able to:
- decide if RPID should be present or not in the B leg for an
outbound call
- make RPID header fully customizable with variables
- filter RPID for inbound call

I saw that kokoska rokoska created a jira bounty for 50$: Make RPID SIP
header optional

I'll add 150$ for this if I could manage RPID as described above.
Sorry to use mailing list for this, I'm unable to add a note on jira for
this bounty.


I really don't need to customize RPID (cause it is depricated header),
but... Well let's add another 50 $ if it will work like you describe Smile

Best regards,

kokoska.rokoska


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kawarod at laposte.net
Guest





PostPosted: Tue Mar 10, 2009 7:25 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Yes I know, it's deprecated but many peers still rely on this and
P-Asserted-ID is not widely spread (my own experience).
moreover if we could strip the RPID, we could write a new one, but It
could be very convenient to get access to the fields in this header for
manipulation.

thanks for supporting this request :p

kokoska rokoska wrote:
Quote:


rod napsal(a):

Quote:
Hi all,

it seems there is no way to do this Sad

It could be great to be able to:
- decide if RPID should be present or not in the B leg for an
outbound call
- make RPID header fully customizable with variables
- filter RPID for inbound call

I saw that kokoska rokoska created a jira bounty for 50$: Make RPID SIP
header optional

I'll add 150$ for this if I could manage RPID as described above.
Sorry to use mailing list for this, I'm unable to add a note on jira for
this bounty.



I really don't need to customize RPID (cause it is depricated header),
but... Well let's add another 50 $ if it will work like you describe Smile

Best regards,

kokoska.rokoska


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kokoska.rokoska at pos...
Guest





PostPosted: Tue Mar 10, 2009 7:40 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

rod napsal(a):
Quote:
... if we could strip the RPID, we could write a new one, but It
could be very convenient to get access to the fields in this header for
manipulation.


Yes, rod, this is exactly why I update bounty to $100 Smile

Thank you very much, rod, for support!

Best regards,

kokoska.rokoska


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Mar 10, 2009 8:26 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Latest SVN:

Send no extra caller id info:
{sip_cid_type=none}sofia/default/user@example.com (user@example.com)

Send RPID (default)
{sip_cid_type=rpid}sofia/default/user@example.com (user@example.com)

Send P-XXX-Identity
{sip_cid_type=pid}sofia/default/user@example.com (user@example.com)

Send RPID with chosen content
{sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user@example.com (user@example.com)

[ Show » ]
user@example.com (user@example.com) Send RPID (default) {sip_cid_type=rpid}sofia/default/user@example.com (user@example.com) Send P-XXX-Identity {sip_cid_type=pid}sofia/default/user@example.com (user@example.com) Send RPID with chosen content {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user@example.com (user@example.com)



Send RPID with chosen content and privacy flags (+ delimited, none to clear all flags)
{sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234,origination_privacy=screen+hide_name+hide_number}sofia/default/user@example.com (user@example.com)


[ Show » ]
user@example.com (user@example.com) Send RPID (default) {sip_cid_type=rpid}sofia/default/user@example.com (user@example.com) Send P-XXX-Identity {sip_cid_type=pid}sofia/default/user@example.com (user@example.com) Send RPID with chosen content {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user@example.com (user@example.com)




Also the privacy app on the inbound leg controls the remaining contents of the RPID and Privacy headers.


On Tue, Mar 10, 2009 at 7:32 AM, kokoska rokoska <kokoska.rokoska@post.cz (kokoska.rokoska@post.cz)> wrote:
Quote:

rod napsal(a):
Quote:
... if we could strip the RPID, we could write a new one, but It
could be very convenient to get access to the fields in this header for
manipulation.



Yes, rod, this is exactly why I update bounty to $100 Smile

Thank you very much, rod, for support!


Best regards,

kokoska.rokoska


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
sicfslist at gmail.com
Guest





PostPosted: Tue Mar 10, 2009 8:37 am    Post subject: [Freeswitch-users] Rewriting Remote Party ID Reply with quote

Anthony,

That is awesome.  This is something that will be a BIG help.

SDR
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services