View previous topic :: View next topic |
Author |
Message |
brad.tuan at gmail.com Guest
|
Posted: Mon Jul 06, 2009 9:06 pm Post subject: [Freeswitch-users] How to modify my INVITE msg?? |
|
|
For example, send a "INVITE 1001123@xxx.xxx.xxx.xxx" to my FS user 1001
How to do this?? |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Jul 06, 2009 9:25 pm Post subject: [Freeswitch-users] How to modify my INVITE msg?? |
|
|
Try this:
<action application="bridge" data="sofia/profile/1001123${regex(${sofia_contact(1001@${domain})}|^[^\@]+(.*)|%1)}"/>
/b
On Jul 6, 2009, at 9:01 PM, Brad Tuan wrote:
|
|
Back to top |
|
|
brad.tuan at gmail.com Guest
|
Posted: Mon Jul 06, 2009 9:57 pm Post subject: [Freeswitch-users] How to modify my INVITE msg?? |
|
|
Useless , the dialplan was changed like this:
<include>
<extension name="1001_trans">
<condition field="destination_number" expression="^1001$">
<action application="bridge" data="sofia/profile/1001123${regex(${sofia_contact(1001@${domain})}|^[^\@]+(.*)|%1)}"/ ([email]1001@${domain})}|^[^\@]+(.*)|%1)}"/[/email])>
</condition>
</extension>
</include>
but when 1003 call 1001 ,the request is still "Request-Line: INVITE sip:1001@192.168.141.182 ([email]sip%3A1001@192.168.141.182[/email]) SIP/2.0"
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->transfer_to_516003] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (FAIL) [transfer_to_516003] destination_number(1001) =~ /^516001$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->transfer_to_516003] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (FAIL) [transfer_to_516003] destination_number(1001) =~ /^516002$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->skype_to_1001] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (PASS) [skype_to_1001] destination_number(1001) =~ /^1001$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Action bridge(sofia/profile/1001123${regex(${sofia_contact(1001@${domain})}|^[^\@]+(.*)|%1 ([email]1001@${domain})}|^[^\@]+(.*)|%1[/email]))})
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:114 switch_core_standard_on_routing() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State Change CS_ROUTING -> CS_EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_session.c:933 switch_core_session_signal_state_change() Send signal sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) [BREAK]
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:483 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State ROUTING going to sleep
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:397 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) Running State Change CS_EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:490 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State EXECUTE
2009-07-07 10:38:46 [DEBUG] mod_sofia.c:173 sofia_on_execute() sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) SOFIA EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:151 switch_core_standard_on_execute() sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Standard EXECUTE
EXECUTE sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) bridge(sofia/profile/1001123@192.168.141.182:29084;rinstance=b4a8ae8884b9ed6b ([email]sofia/profile/1001123@192.168.141.182:29084;rinstance=b4a8ae8884b9ed6b[/email]))
2009-07-07 10:38:46 [ERR] mod_sofia.c:2681 sofia_outgoing_channel() Invalid Profile
FS return it is a Invalid Profile....Why?? |
|
Back to top |
|
|
brad.tuan at gmail.com Guest
|
Posted: Mon Jul 06, 2009 9:57 pm Post subject: [Freeswitch-users] How to modify my INVITE msg?? |
|
|
Useless , the dialplan was changed like this:
<include>
<extension name="1001_trans">
<condition field="destination_number" expression="^1001$">
<action application="bridge" data="sofia/profile/1001123${regex(${sofia_contact(1001@${domain})}|^[^\@]+(.*)|%1)}"/ ([email]1001@${domain})}|^[^\@]+(.*)|%1)}"/[/email])>
</condition>
</extension>
</include>
but when 1003 call 1001 ,the request is still "Request-Line: INVITE sip:1001@192.168.141.182 ([email]sip%3A1001@192.168.141.182[/email]) SIP/2.0"
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->transfer_to_516003] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (FAIL) [transfer_to_516003] destination_number(1001) =~ /^516001$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->transfer_to_516003] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (FAIL) [transfer_to_516003] destination_number(1001) =~ /^516002$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) parsing [default->skype_to_1001] continue=false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Regex (PASS) [skype_to_1001] destination_number(1001) =~ /^1001$/ break=on-false
Dialplan: sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Action bridge(sofia/profile/1001123${regex(${sofia_contact(1001@${domain})}|^[^\@]+(.*)|%1 ([email]1001@${domain})}|^[^\@]+(.*)|%1[/email]))})
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:114 switch_core_standard_on_routing() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State Change CS_ROUTING -> CS_EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_session.c:933 switch_core_session_signal_state_change() Send signal sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) [BREAK]
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:483 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State ROUTING going to sleep
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:397 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) Running State Change CS_EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:490 switch_core_session_run() (sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email])) State EXECUTE
2009-07-07 10:38:46 [DEBUG] mod_sofia.c:173 sofia_on_execute() sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) SOFIA EXECUTE
2009-07-07 10:38:46 [DEBUG] switch_core_state_machine.c:151 switch_core_standard_on_execute() sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) Standard EXECUTE
EXECUTE sofia/internal/1003@192.168.141.182 ([email]sofia/internal/1003@192.168.141.182[/email]) bridge(sofia/profile/1001123@192.168.141.182:29084;rinstance=b4a8ae8884b9ed6b ([email]sofia/profile/1001123@192.168.141.182:29084;rinstance=b4a8ae8884b9ed6b[/email]))
2009-07-07 10:38:46 [ERR] mod_sofia.c:2681 sofia_outgoing_channel() Invalid Profile
FS return it is a Invalid Profile....Why?? |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Jul 07, 2009 8:23 am Post subject: [Freeswitch-users] How to modify my INVITE msg?? |
|
|
Well put the right profile name in there... instead of just "profile"
/b
On Jul 6, 2009, at 9:48 PM, Brad Tuan wrote:
Quote: | 2009-07-07 10:38:46 [ERR] mod_sofia.c:2681 sofia_outgoing_channel()
Invalid Profile
FS return it is a Invalid Profile....Why??
__________________________________
|
_______________________________________________
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 |
|
|
|