Scenario : registering phase
Good morning , Can you help me please ?, I need to configure a number X in my soft phone . I want to do a scenario in the regestering phase which must be like this : soft --------------------register--------------------------------> server soft <-----------------unauthorized (first 401)----------------server soft ---------------------register (with authorization header computed with the nonce of the 401)----------------------------------------------------->server soft <--------------------unauthorized 401 (with stale ==False) ---->server i did this in dialplan/default.xml: <extension name="fail register"> <condition field="caller_id_number" expression="^400$"> <action application="respond" data="401"/> <action application="hangup"/> </condition> </extension> i have only one unauthorized then i have ok ,but how can i do to have this result . thank you with best regards , amani
participants (1)
-
amani mansour